• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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