Proxy WebApp Problems

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Proxy WebApp Problems

koepie
This post has NOT been accepted by the mailing list yet.
Hello,

I Have a Problem with the Proxy settings.

When I add the URL ( https://pool.mrtv.biz/#/ )  to the homescreen on IOS the WEBApp dont work and i see only a white screen.
But when I open the URL in the browser everything works fine.

So I start another test... I add the URL from tomcat directly to the homescreen and it works...

I think the Problem is in the apache Proxy config.

<VirtualHost *:443>

ServerName pool.mrtv.biz
ServerAdmin info@mrtv.biz

SSLEngine on
SSLCertificateFile  /etc/letsencrypt/live/pool.mrtv.biz/cert.pem
SSLCertificateKeyFile   /etc/letsencrypt/live/pool.mrtv.biz/privkey.pem

#WICHTIT!
ProxyErrorOverride Off

SetEnvIf Request_URI "^/guacamole/tunnel" dontlog
CustomLog  /var/log/apache2/guac.log common env=!dontlog


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

<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>

#LogLevel Debug

</VirtualHost>

Many thanks for your time.
Regards,
Jacob
Reply | Threaded
Open this post in threaded view
|

Re: Proxy WebApp Problems

koepie
This post has NOT been accepted by the mailing list yet.
when i look in the logs while starting the webapp from the homescreen I see this :

tail -f /var/log/tomcat8/localhost_access_log.2017-03-05.txt
127.0.0.1 - - [05/Mar/2017:20:08:26 +0100] "GET /guacamole/app.css?v=0.9.9 HTTP/1.1" 304 -
127.0.0.1 - - [05/Mar/2017:20:08:27 +0100] "GET /guacamole/app.js?v=0.9.9 HTTP/1.1" 304 -

i think there is a problem with the version?
Because i updatet from 0.9.9 to 0.9.11
Reply | Threaded
Open this post in threaded view
|

Re: Proxy WebApp Problems

bsavard
I'm not an expert but I think your httpd.conf directive should look like this (and without comments #):

<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>