Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

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

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>

7 Replies
Anonymous
Not applicable
Author

Whether your default proxy is working fine with the same domain name ?

Not applicable
Author

Hi Karthikeyan,

If your question was that whether Dashboard comes up when I connect to http://backend.server.local/‌  domain and able to authenticate properly ? Yes it does work without any issue.

Now I do have a separate domain on Apache Proxy which is not related to back end (http://backend.server.local/)‌ domain. Not sure if it would make any difference as trying to place a reverse proxy to hide/protect backend.

Anonymous
Not applicable
Author

Sometime even not adding the particular new domain in the white list will throw this error.

If you create new virtual proxy for your new apache proxy , Please that new domain in white list to see if that fixes the issue.

Not applicable
Author

Thanks,

Actually I did tried white listed the domain thinking it might be doing something to header but no specific effect.

Anonymous
Not applicable
Author

Sure. Then you are on right track. BTW also make sure white list on Virtual proxy and regular proxy.

Anonymous
Not applicable
Author

Adding to that please also make sure Qlik Client certificate is referred in your code.

Not applicable
Author

At the moment i am trying to test without SSL just to take out any inherent issues.

Thanks,