Site icon RDR-IT

Guacamole : Reverse proxy Apache – Exemple

1. Installer Apache2 :

sudo apt install apache2 -y

2. Activer les mod Apache2 :

a2enmod rewrite
a2enmod proxy_http
a2enmod proxy_wstunnel

3. Modifier le virtualhost par defaut ou créer un nouveau et ajouter :

ProxyPass / http://127.0.0.1:8080/guacamole/ flushpackets=on
ProxyPassReverse / http://127.0.0.1:8080/guacamole/
ProxyPassReverseCookiePath /guacamole /
<Location /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>
SetEnvIf Request_URI "^/tunnel" dontlog
CustomLog  /var/log/apache2/guac.log common env=!dontlog

4. Redémarrer Apache

sudo systemctl restart apache2.service
Quitter la version mobile