Skip to content

Instantly share code, notes, and snippets.

@kejyun
Created November 29, 2012 14:37
Show Gist options
  • Save kejyun/4169487 to your computer and use it in GitHub Desktop.
Save kejyun/4169487 to your computer and use it in GitHub Desktop.
nginx default config
server {
root /var/www;
index index.php index.html index.htm;
location ~ \.php {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
keepalive_timeout 0;
fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment