7 Replies Latest reply: Nov 21, 2016 3:04 PM by Yasir Javed RSS

    Qlik Sense - (Apache 2.4 + mod_proxy) Reverse proxy setup....Anyone have any success

    Yasir Javed

      Hello,

       

      Have been searching on forums but have not been able to find a working reverse proxy setup.

       

      We have to deploy a reverse proxy in our DMZ to Front Qlik proxy. Setup that I have in place is as follows however even after looking the initial desktop QlikSense gives out an error that something went wrong and bring a box to refresh. This goes in cycle.

       

      In chrome dev tool it seem that there is something wrong with websocket connection but error code is 200 which is quite weird.

       

      Any help from the community would be appreciated.

       

      <VirtualHost *:80>

        ServerName proxy.server.local

        ErrorDocument 404 "Error 404 Page Not Found"

        RewriteEngine On

       

        RewriteCond %{REQUEST_URI} ^/(.*) [NC]

        RewriteCond %{HTTP:Upgrade} websocket [NC]

        RewriteCond %{QUERY_STRING} ^(.*)http://backend.server.local/(.*)$ [NC]

        RewriteRule ^/(.*) ws://backend.server.local/$1?%1http://backend.server.local/%2 [P,L]

        RewriteCond %{REQUEST_URI} ^/dataprepservice/app/(.*) [NC]

        RewriteCond %{HTTP:Upgrade} websocket [NC]

        RewriteRule ^/dataprepservice/app/(.*)$ ws://backend.server.local/dataprepservice/app/$1 [P,L]

       

        ProxyRequests Off

       

        ProxyPass        /form http://backend.server.local:4248/form retry=1 acquire=3000 timeout=600 Keepalive=On

        ProxyPassReverse /form http://backend.server.local:4248/form

       

        ProxyPass        /app ws://backend.server.local/app/ retry=1 acquire=3000 timeout=600 Keepalive=On

        ProxyPassReverse /app ws://backend.server.local/app/

       

        ProxyPass        /resources http://backend.server.local/resources retry=1 acquire=3000 timeout=600 Keepalive=On

        ProxyPassReverse /resources http://backend.server.local/resources

       

        ProxyPass        /hub/ ws://backend.server.local/hub/qrsData retry=1 acquire=3000 timeout=600 Keepalive=On

        ProxyPassReverse /hub/ ws://backend.server.local/hub/qrsData

       

        ProxyPass        /qrsData ws://backend.server.local/hub/qrsData retry=1 acquire=3000 timeout=600 Keepalive=On

        ProxyPassReverse /qrsData ws://backend.server.local/hub/qrsData

       

        ProxyPass        /dataprepservice/app/ ws://backend.server.local/dataprepservice/app/ retry=1 acquire=3000 timeout=600 Keepalive=On

        ProxyPassReverse /dataprepservice/app/ ws://backend.server.local/dataprepservice/app/

       

      ProxyPass        /windows_authentication/ http://backend.server.local:4248/windows_authentication/ retry=1 acquire=3000 timeout=600 Keepalive=On

        ProxyPassReverse /windows_authentication/ http://backend.server.local:4248/windows_authentication/

       

        ProxyPass       / http://backend.server.local/ retry=1 acquire=3000 timeout=600 Keepalive=On

        ProxyPassReverse / http://backend.server.local/

       

      </VirtualHost>