Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- #listen 80;
- server_name dev.passion.com;
- root /Users/ororimac/Site/passion;
- autoindex on;
- index index.php;
- # set expiration of assets to MAX for caching
- location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ {
- expires max;
- log_not_found off;
- }
- error_log /usr/local/etc/nginx/logs/passion.error.log;
- access_log /usr/local/etc/nginx/logs/passion.access.log;
- location / {
- try_files $uri $uri/ /index.php;
- location = /index.php {
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- }
- location ~ \.php$ {
- return 444;
- }
- #location ~ \.php$ {
- # #root /Users/ororimac/Site;
- # #try_files $uri $uri/ /index.php?$args ;
- # index index.html index.htm index.php;
- # fastcgi_param PATH_INFO $fastcgi_path_info;
- # fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
- # fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- # fastcgi_pass 127.0.0.1:9000;
- # fastcgi_index index.php;
- # fastcgi_split_path_info ^(.+\.php)(/.+)$;
- # fastcgi_intercept_errors on;
- # include fastcgi_params;
- #}
- }
Add Comment
Please, Sign In to add comment