docker-nginx-proxy-manager icon indicating copy to clipboard operation
docker-nginx-proxy-manager copied to clipboard

Proxy_pass expansion by additional path

Open Ijyama opened this issue 5 years ago • 3 comments

I would like to extend then proxy pass by a additionally path ($basepath) so that I can use

proxy_pass $forward_scheme://$server:$port/$basepath;

because I want to use dynamic-dns haostnames for different features of custom products.

Here I want to provide webmail feature of mailu as mail.my.dynamic-domain.name with the internal http://mailu.my.local:40080/webmail but not the admin interface. Now I miss the "/webmail" expandability Can anyone help me by forking or provide the extension in the UI and the program? I'm a bloody newbie in this technology

Ijyama avatar Feb 08 '21 19:02 Ijyama

Can this be achieved by adding a redirect ? So someone accessing mail.my.dynamic-domain.name would be automatically redirected to mail.my.dynamic-domain.name/webmail.

Under the Advanced tab of your proxy host, add something like:

location = /{return 301 $scheme://$http_host/webmail;}

jlesage avatar Feb 09 '21 23:02 jlesage

Thank you for the hint. I have now overridden in the advanced tab. But there I have to manage manually all the stuff the other graphical controls manage. The redirect is not the stuff I want to use, because this would open the path /admin for the outer world but this I only want to access from my intranet. I have several hosts, each one for one specially service. webmail, my router, my nas etc. But each with it's special path to access.

Ijyama avatar Feb 11 '21 17:02 Ijyama

Ok, I misunderstood what you are trying to achieve. So you want to use the same domain name for multiple services. This should be achievable using Custom Locations in the proxy host.

jlesage avatar Feb 15 '21 02:02 jlesage