this post was submitted on 27 Nov 2023
1 points (100.0% liked)

Homelab

371 readers
9 users here now

Rules

founded 11 months ago
MODERATORS
 

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.

โ€‹

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 1 points 9 months 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.