OPNsense Forum

Archive => 22.7 Legacy Series => Topic started by: jezza007 on November 22, 2022, 09:31:19 PM

Title: nginx domain subfolder path configuration
Post by: jezza007 on November 22, 2022, 09:31:19 PM
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


Title: Re: nginx domain subfolder path configuration
Post by: Fright on November 23, 2022, 01:31:50 PM
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
Title: Re: nginx domain subfolder path configuration
Post by: adson.junio on July 24, 2023, 02:03:53 AM
Hi

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