Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- composer create-project laravel/laravel your-project-name --prefer-dist
- Route::get('/about', function()
- {
- return "about page";
- });
- server {
- listen 80 default;
- server_name _;
- root /var/www/laravel/public;
- index index.php;
- location / {
- try_files $uri $uri/ /index.php?$query_string;
- }
- location ~ .php$ {
- include fastcgi_params;
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement