nginx domain subfolder path configuration

Started by jezza007, November 22, 2022, 09:31:19 PM

Previous topic - Next topic
Hi, if someone could help please, I have read the tutorial and successfully setup nginx with letsencrypt and the domain fqdn and base upstream server works perfectly on https://mydomain.com

I am trying to configure a second location which points to a second internal web service with a subfolder of the primary domain
https://mydomain.com/filemanger to point to another upstream server on https://192.168.1.5/

I have configured the second upstream location with (see screenshot)
URL pattern /filemanager/
path prefix /

so that when get https://mydomain.com/filemanager/ it directs to https://192.168.1.5/
It seems to start to load the page but then gets a 500 gateway timeout

Is this the correct way to configure for subfolders?
Thank you



Hi
path prefix option allows to only add part of the path but not to delete..
if you need to cut "filemanager" from request then you need URL Rewrite imho

Hi

Someone managed to solve this scenario by web NGINX Proxy UI Opnsense reverse?