Advertisement
Guest User

Untitled

a guest
Mar 31st, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. /var/www
  2. |-- html - Server root
  3. +-- projects
  4. +-- test
  5. |-- public
  6. | +-- info.php - Served when visiting http://server/test/info.php
  7. +-- app/vendor/etc.
  8.  
  9. location ~ ^/test {
  10. alias /var/www/projects/test/public;
  11. include /etc/nginx/php.conf;
  12. }
  13.  
  14. location ~ ^/test {
  15. root /var/www/projects/test/public;
  16. include /etc/nginx/php.conf;
  17. }
  18.  
  19. location ~ [^/].php(/|$) {
  20. fastcgi_split_path_info ^(.+?.php)(/.*)$;
  21. if (!-f $document_root$fastcgi_script_name)
  22. {
  23. return 404;
  24. }
  25. try_files $uri =404;
  26. fastcgi_pass 127.0.0.1:9000;
  27. fastcgi_index index.php;
  28. include fastcgi_params;
  29. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  30. fastcgi_param PATH_INFO $fastcgi_path_info;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement