Skip to content

Instantly share code, notes, and snippets.

@bkilshaw
Created June 9, 2011 19:11
Show Gist options
  • Save bkilshaw/1017470 to your computer and use it in GitHub Desktop.
Save bkilshaw/1017470 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name domain.com www.domain.com;
root /var/www/domain.com/public;
index index.html index.php;
try_files $uri /index.php?id=$uri
location ~ .php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/domain.com/public/$fa stcgi_script_name;
include /opt/nginx/conf/fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment