Created
January 18, 2013 09:51
-
-
Save muchzill4/4563508 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name nelson.dev; | |
access_log /usr/local/var/log/nelson.access.log; | |
location /images/nelsonInterface { | |
root /Users/much4/Dev/php/nelson/site; | |
# root /Users/much4/Dev/php/source/site; | |
try_files $uri /uploads/$uri; | |
expires off; | |
} | |
location /uploads { | |
try_files $uri $uri/ @images; | |
} | |
location @images { | |
rewrite ^/uploads/(.*)$ /uploads/picture.php?image=$1 last; | |
} | |
location / { | |
root /Users/much4/Dev/php/nelson/site; | |
# root /Users/much4/Dev/php/source/site; | |
try_files $uri $uri/ /index.php?url=$uri&$args; | |
index index.html index.htm index.php; | |
autoindex on; | |
expires off; | |
} | |
location ~ \.php$ { | |
root /Users/much4/Dev/php/nelson/site; | |
# root /Users/much4/Dev/php/source/site; | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
include fastcgi_params; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment