Proxy_pass expansion by additional path
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
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;}
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.
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.