• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question Trying to migrate subdomain from Apache/nginx to nginx only, receiving 404 on nodeJS

basdebruin

New Pleskian
I have subdomain serving NodeJS apps only. Current setup is nginx proxy in front of Apache and I want to stop using Apache on this NodeJS serving subdomain. I unchecked the checkbox for proxy mode in the nginx setting in the subdomain. My "health check" route returns ok.

router.get("/health", function (req, res) {
res.json(getHealth());
res.end();
});

All my other routes are reached path like: https://mysubdomain.domain.nl/APP/vote-to-grpup (as an example) and I have nginx directives in place for all apps like:

location ^~ /VTG {
proxy_pass https://mysubdomain.domain.nl/;
proxy_set_header MondayApp "VTG";
}

I do get 404 on all app requests as if the proxy_pass is not working.

What am I doing wrong?
 
Back
Top