Skip to content

Instantly share code, notes, and snippets.

@dofy
Created October 20, 2016 06:18
Show Gist options
  • Save dofy/8513afdb1040e43bf385b2633c579dc3 to your computer and use it in GitHub Desktop.
Save dofy/8513afdb1040e43bf385b2633c579dc3 to your computer and use it in GitHub Desktop.
php site for Nginx
server {
listen 80;
server_name domain.com;
access_log off;
root /path/to/your/website;
index index.html index.htm index.php;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
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