Skip to content

Instantly share code, notes, and snippets.

@kristianfreeman
Last active December 20, 2015 23:59
Show Gist options
  • Save kristianfreeman/6216906 to your computer and use it in GitHub Desktop.
Save kristianfreeman/6216906 to your computer and use it in GitHub Desktop.
nginx.conf for subdomaining all the things
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