Skip to content

Instantly share code, notes, and snippets.

@rafaelmv
Created October 9, 2015 02:15
Show Gist options
  • Save rafaelmv/40030df981eeb3058626 to your computer and use it in GitHub Desktop.
Save rafaelmv/40030df981eeb3058626 to your computer and use it in GitHub Desktop.
Nginx config for a simple server
server {
listen 80;
server_name subdomain1.domain.com;
location / {
proxy_pass http://localhost:{YOUR_PORT};
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment