NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
21.91k stars 2.53k forks source link

Sub path for proxied host #3110

Open jerry-yuan opened 1 year ago

jerry-yuan commented 1 year ago

Is your feature request related to a problem? Please describe. I have deployed a NPM in docker to proxy the web services in other containers. Most of the backend services are work well entil I added a Guacamole, which was written in java with servlet. The homepage of guacamole was http://guacamole.host/guacamole, whose suffix guacamole was unavoidable when using offical images. When I added a proxy host in NPM with domain rdp.example.com, I found I need to access the guacamole with http://rdp.example.com/guacamole and http://rdp.example.com displayed as a 404 page. Although I can remove the suffix by repacking guacamole's image, I will loss the automatic update feature provided by watchtower which can update docker image from official repository.

Describe the solution you'd like The nginx supports add a path on proxy_pass:

location / {
      proxy_pass ${proto}://${server}:${port}/${path}
      ... other configurations.
}

I'll appreciate if NPM can add a text box and support to append path suffix for proxy_pass.

Describe alternatives you've considered I have tried to add some advanced custom configuration, but the location / is always overwrite by NPM and lead my custom configuration into a crash.

github-actions[bot] commented 5 months ago

Issue is now considered stale. If you want to keep it open, please comment :+1:

jerry-yuan commented 5 months ago

keep issue open😌