Skip to content

Instantly share code, notes, and snippets.

@chiehwen
Last active August 29, 2015 14:00
Show Gist options
  • Save chiehwen/f0cc1b45a8dd7e8bc978 to your computer and use it in GitHub Desktop.
Save chiehwen/f0cc1b45a8dd7e8bc978 to your computer and use it in GitHub Desktop.
Nginx site configuration
# This file is a sample configuration for Nginx.
# put this file in /etc/nginx/sites-enabled/
server {
listen 80;
server_name www.example.com;
location / {
root /var/www/example.com;
index index.html index.htm;
}
location ~ \.php$ {
include conf/fcgi.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