Say you want to change Apache Guacamole’s URL from http://server:8080/guacamole to something like http://server:8080/my-hidden-guacamole-instance (or perhaps you’re using nginx to proxy requests to Guacamole / Tomcat and you don’t want any path at all).
(See Docker image specific instructions in the comments section below).
- Stop Tomcat web server (typically using a command like:
service tomcat8 stop
) - Navigate to Tomcat’s
webapps/
directory (typicallycd /var/lib/tomcat8/webapps/
). Among other things inside you will findguacamole.war
. - Backup and then delete
guacamole
directory (NOTguacamole.war
) - Two options, depending on how you want your Guacamole URL to look like:
- If you want to change
/guacamole
to/my-hidden-guacamole-instance
, renameguacamole.war
tomy-hidden-guacamole-instance.war
.
- If you want to change
/guacamole
to/
(no path), first — renameROOT
directory to something likeROOT_OLD
(or just remove it). Then, renameguacamole.war
toROOT.war
- If you want to change
- Start Tomcat. A new directory will be created inside
webapps/
with the same name as the .war file.
Hi, is there a way to do that with the official Docker image?
These steps gave me enough to figure out how to do something similar for the docker image. Create a persistent volume for /home/guacamole, from the docker host then create a symlink for ROOT.war to guacamole.war within /home/guacamole/tomcat/webapps/.
Thanks for taking time to post this.
I stumbled across this while looking for a solution for docker…
It seems the container start up script supports an Environment Var for it!
Simply set:
-e WEBAPP_CONTEXT=ROOT
Super! Thanks for taking time to post this.
Worked perfectly thank you!
Where do you set this environment variable? I’m not even sure I know what the container startup script is. Is it a script contained with a container, or is it the script that resides on the Docker host that starts the container?
Fantastic!
Instaled guac natively on Unbuntu, then ran into this issue.
Thank you for the help. I had to restart tomcat twice, then I was good to go.
Glad it was helpful, started my day from reading your comment, thx <3