How to configure an Nginx reverse proxy host that points at a webserver subdirectory? - eviltoast

My Daminion webserver runs at daminion.mydomain.com/daminion. If I omit the trailing /daminion, I land on the default IIS webserver screen.

I have NPM configured for daminion.mydomain.com on the Details tab, and on the Custom Locations tab I have the Location set to /, Scheme is http, forward host is nuc11.mydomain.com/daminion/, and port is 80.

When I attempt to navigate to the proxy host, NPM is taking me to daminion.mydomain.com/daminion/daminion (the subdirectory is appending twice). Any ideas why this is happening? I’m following the instructions listed in the comments on this page.

  • kY2iB3yH0mN8wI2h@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    without seeing your Nginx.config it will not be possible to help. you can also run curl with -vv and troubleshoot. I assume you just get two re-directs that append the path based on existing path, so you are doing the re-direct twice somehow. I don’t know what Daminion or NPM are.

    however its possible to route traffic in nginx with location and a normal proxy_pass.