Skip to content

Instantly share code, notes, and snippets.

@lorenzo
Created March 6, 2012 19:32
Show Gist options
  • Save lorenzo/1988522 to your computer and use it in GitHub Desktop.
Save lorenzo/1988522 to your computer and use it in GitHub Desktop.
My nginx conf
# php.conf
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
}
index index.php;
#cakephp.conf
include php.conf;
location / {
try_files $uri $uri/ /index.php?$uri&$args;
expires max;
access_log off;
}
#site/available/my_site.conf
server {
listen 80;
server_name my_site.local;
root /Users/lorenzo/Sites/my_site/app/webroot;
include cakephp.conf;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment