abesnier/docker-guacamole

guacamole.mydomain.com -> mydomain.com/guacamole

Closed this issue · 2 comments

As the title suggests I want to access the guacamole using a subpath. I tried adding the path in Cloudflare tunnels, but getting a 404 issue.
image

Renaming ROOT.war to guacamole.war solved my issue. Any ways to make this persistent?

Hi,

Does your machine serve only Guacamole, or any other services? If so, do you use a reverse proxy?
What you observe is that tomcat is your server, and responds to mydomain.com. By default, if you query only mydomain.com, it would serve the default ROOT.war servlet. If you add /guacamole, it will look for guacamole.war servlet, and serve it if found.

If you want queries from guacamole.mydomain.com to be routed to mydomain.com/guacamole, you will need a reverse proxy or a redirect manager.

Because this is containerized application, it basically just runs a service listening to port 8080 on the host machine. All routing have to be managed outside the container.

Have a look at Nginx proxy manager, that's a very convenient tool to manage reverse proxies.

Cheers
Antoine

Thank you for the reply.