Hello, I installed Apache Guacamole using this script: https://github.com/MysticRyuujin/guac-install

I am using nginx as a reverse proxy to forward to the guacamole host… Nginx conf (redirect to 443 is set in default conf):

server { listen 443 ssl; server_name vm.domain.com;

ssl_certificate /etc/letsencrypt/live/domain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/domain.com/privkey.pem;

location / {
proxy_pass http://IP-ADDRESS:8080/guacamole;
proxy_buffering off;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
access_log off;

} }

If I open “vm.domain.com” it shows me the nginx welcome page. If I open “vm.domain.com/guacamole” it shows me the guacamole page, but strange field-names (never seen this before…). When I open it by using the local IP, everything is fine.

So how do I change the tomcat9 default path, that I don’t have to use “vm.domain.com/guacamole” just “vm.domain.com” (also with local ip)? And how do I get it shown right?

  • akircher@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I had a bit of hassle with Guacamole too.

    I eventually got it working like this:

    location / {
        proxy_pass                             http://guacamole:8080/guacamole/;
        proxy_buffering                        off;
        proxy_http_version                     1.1;
        proxy_cookie_path /guacamole/          /;
        proxy_set_header  X-Forwarded-Host     $host;
        proxy_set_header  X-Forwarded-Server   $host;
        proxy_set_header  X-Forwarded-For      $proxy_add_x_forwarded_for;
        proxy_set_header  X-Forwarded-Proto    $scheme;
        proxy_set_header  Host                 $host;
        proxy_set_header  Upgrade              $http_upgrade;
        proxy_set_header  Connection           $http_connection;
    }
    

    Happy to send you my docker-compose.yml if you want a copy.