abesnier / docker-guacamole

A self-contained guacamole docker container for x64. Remotely connect over SSH, RDP or VNC using HTML5.
https://hub.docker.com/r/abesnier/guacamole
GNU General Public License v3.0
78 stars 14 forks source link

guacamole.mydomain.com -> mydomain.com/guacamole #36

Closed jesb1n closed 3 months ago

jesb1n commented 3 months ago

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?

abesnier commented 3 months ago

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

jesb1n commented 3 months ago

Thank you for the reply.