Last active
December 20, 2015 23:59
-
-
Save kristianfreeman/6216906 to your computer and use it in GitHub Desktop.
nginx.conf for subdomaining all the things
This file contains hidden or 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
server { | |
# Subdomain | |
listen 80; | |
server_name subdomain.domain.com; | |
location / { | |
proxy_pass http://127.0.0.1:8080/; | |
} | |
} | |
server { | |
# Static Site | |
listen 80; | |
server_name domain.com; | |
location / { | |
root /home/username/site_location; | |
index index.html; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment