Skip to content

Instantly share code, notes, and snippets.

@c9n
Created February 22, 2016 03:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save c9n/85474088f0a234a0aafc to your computer and use it in GitHub Desktop.
Save c9n/85474088f0a234a0aafc to your computer and use it in GitHub Desktop.
nginx php conf
server {
server_name demo.abc.com;
root /opt/dccc;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
try_files $uri =404;
include fastcgi.conf;
fastcgi_pass 127.0.0.1:9000;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment