Nginx reverse proxy for NodeJs
Posted: Sun Oct 14, 2018 12:35 am
Greetings! I was a long term user of KloxoMR, but have moved to a Ubuntu box. Vesta is very very clean. I am amazed! :-)
I have 8 domains, all running well. One of the domains must reverse proxy nodejs - not Apache. I am looking for a solution that will not get wiped or removed if I need to rebuild the web.
location / {
proxy_pass http://private_ip_address:9090;
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;
}
If I change the domain file in nginx to the above, will changes persist?
Thank you and thank you for a great panel!
Chris
I have 8 domains, all running well. One of the domains must reverse proxy nodejs - not Apache. I am looking for a solution that will not get wiped or removed if I need to rebuild the web.
location / {
proxy_pass http://private_ip_address:9090;
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;
}
If I change the domain file in nginx to the above, will changes persist?
Thank you and thank you for a great panel!
Chris