Are there any proper guide on how to setup guacamole with apache2 https reverse 
proxy ?.

I tried setting up guacamole with apache2, with "https://example-domain-name"; 
the default ubuntu apache2 webpage would open. 

"https:///example-domain-name/guacamole"; will throw some certificate error. Had 
to remove apache2 and setup guacamole with ngnix, reverse proxy is working fine 
over https !!!!.

my old apache2 config,

1, /etc/apache2/sites-available/guacamole.html
2, enabled guacamole.html
3, disabled 000-default
4, restarted apache2
5, ran certbot --apache
6, restarted guacd, tomcat9 and apache2

contents of guacamole.html

<VirtualHost *:80>
    ServerName "example-domain-name"
    ServerAlias "example-domain-name"

    Redirect permanent / https://example-domain-namee/
</VirtualHost>

<VirtualHost *:443>
    ServerName "example-domain-name"
    ServerAlias "example-domain-name"

    <If "%{HTTP_HOST} == 'www.example-domain-name'">
    Redirect permanent / https://"example-domain-name"/
    </If>

    ErrorLog /var/log/apache2/example-domain-name-error.log
    CustomLog /var/log/apache2/example-domain-name-access.log combined

    SSLEngine On
    SSLCertificateFile /etc/letsencrypt/live/piitpl.co.in/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/piitpl.co.in/privkey.pem

    <Location /guacamole/>
        Order allow,deny
        Allow from all
        ProxyPass http://127.0.0.1:8080/guacamole/ flushpackets=on
        ProxyPassReverse http://127.0.0.1:8080/guacamole/
    </Location>

    <Location /guacamole/websocket-tunnel>
        Order allow,deny
        Allow from all
        ProxyPass ws://127.0.0.1:8080/guacamole/websocket-tunnel
        ProxyPassReverse ws://127.0.0.1:8080/guacamole/websocket-tunnel
    </Location>

</VirtualHost>


Thanks,

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@guacamole.apache.org
For additional commands, e-mail: user-h...@guacamole.apache.org

Reply via email to