Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name *.dev.newsite.com;
- location / {
- root path-to-laravel-public-folder;
- index index.php index.html index.htm;
- autoindex on;
- try_files $uri $uri/ /index.php?$query_string;
- }
- location ~ \.php$ {
- try_files $uri /index.php =404;
- root path-to-laravel-public-folder;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- fastcgi_param SERVER_PORT 8080;
- # This may not really be needed due to the catchall above.
- fastcgi_index index.php;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement