Skip to content

Instantly share code, notes, and snippets.

@andineck
Last active December 28, 2015 23:49
Show Gist options
  • Save andineck/7581862 to your computer and use it in GitHub Desktop.
Save andineck/7581862 to your computer and use it in GitHub Desktop.
nginx
# allow multiple domains
nano /etc/nginx/nginx.conf
# uncomment or add this in the http section:
> server_names_hash_bucket_size 64;
# configure new site
nano /etc/nginx/conf.d/intesso.com.conf
server {
listen 80;
server_name comrouter.intesso.com;
location / {
proxy_pass http://localhost:3002;
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;
}
}
# start it
sudo service nginx start
# reload it
sudo service nginx reload
update-rc.d nginx defaults
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment