Skip to content

Instantly share code, notes, and snippets.

@MauricioDinki
Forked from rafaelmv/nginx.conf
Created January 23, 2016 19:04
Show Gist options
  • Save MauricioDinki/0738746023342bb96813 to your computer and use it in GitHub Desktop.
Save MauricioDinki/0738746023342bb96813 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