Advertisement
Guest User

Untitled

a guest
Jan 9th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name *.dev.newsite.com;
  4.  
  5. location / {
  6. root path-to-laravel-public-folder;
  7. index index.php index.html index.htm;
  8. autoindex on;
  9. try_files $uri $uri/ /index.php?$query_string;
  10. }
  11.  
  12. location ~ \.php$ {
  13. try_files $uri /index.php =404;
  14. root path-to-laravel-public-folder;
  15. fastcgi_pass 127.0.0.1:9000;
  16. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  17. include fastcgi_params;
  18. fastcgi_param SERVER_PORT 8080;
  19. # This may not really be needed due to the catchall above.
  20. fastcgi_index index.php;
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement