Skip to content

Instantly share code, notes, and snippets.

@marcodejongh
Created August 22, 2014 09:48
Show Gist options
  • Save marcodejongh/f22c899b5757017fbd27 to your computer and use it in GitHub Desktop.
Save marcodejongh/f22c899b5757017fbd27 to your computer and use it in GitHub Desktop.
http {
server {
listen 80;
server_name nvqhq.com;
location / {
proxy_pass http://localhost:3000/marketing;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
}
server {
listen 80;
server_name admin.nvqhq.com;
location / {
proxy_pass http://localhost:3000/admin;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
}
server {
listen 80;
server_name learners.nvqhq.com;
location / {
proxy_pass http://localhost:3000/learners;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment