Skip to content

Instantly share code, notes, and snippets.

@muchzill4
Created January 18, 2013 09:51
Show Gist options
  • Save muchzill4/4563508 to your computer and use it in GitHub Desktop.
Save muchzill4/4563508 to your computer and use it in GitHub Desktop.
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