Last active
August 29, 2015 14:00
-
-
Save chiehwen/f0cc1b45a8dd7e8bc978 to your computer and use it in GitHub Desktop.
Nginx site configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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