Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /var/www
- |-- html - Server root
- +-- projects
- +-- test
- |-- public
- | +-- info.php - Served when visiting http://server/test/info.php
- +-- app/vendor/etc.
- location ~ ^/test {
- alias /var/www/projects/test/public;
- include /etc/nginx/php.conf;
- }
- location ~ ^/test {
- root /var/www/projects/test/public;
- include /etc/nginx/php.conf;
- }
- location ~ [^/].php(/|$) {
- fastcgi_split_path_info ^(.+?.php)(/.*)$;
- if (!-f $document_root$fastcgi_script_name)
- {
- return 404;
- }
- try_files $uri =404;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement