Welcome! Log In Create A New Profile

Advanced

proxify qlikview through nginx

Posted by manefesto 
proxify qlikview through nginx
November 09, 2018 12:30AM
We use nginx as load balancer for our project
But we have some trouble, auth not worked in qlikview when we use nginx
This config worked on apache:

<VirtualHost *:80>
<Location "/qlikview">
ProxyPass http://10.7.136.107/qlikview
</Location>
<Location /QvAJAXZfc/>
ProxyPass http://10.7.136.107/QvAJAXZfc/
</Location>
<Location /QvAjaxZfc/>
ProxyPass http://10.7.136.107/QvAjaxZfc/
</Location>
</VirtualHost>

But config like above not worked

server {
listen 80;

location /qlikview {
proxy_pass http://10.7.136.107/qlikview;
}

location /QvAJAXZfc/ {
proxy_pass http://10.7.136.107/QvAJAXZfc/;
}

location /QvAjaxZfc/ {
proxy_pass http://10.7.136.107/QvAjaxZfc/;
}
}

When I look to web console I see first auth response (nginx)

Response headers (155 B)
Connection keep-alive
Content-Length 0
Date Fri, 09 Nov 2018 04:59:42 GMT
Server nginx/1.15.6

Request headers (475 B)
Accept */*
Accept-Encoding gzip, deflate
Accept-Language en-US,en;q=0.5
Cache-Control no-cache
Connection keep-alive
Cookie xrfkey=dwQTEdUgc2wYB0Cv; Acces…b-59d5-1ee7-ec53-c8d625fafb58
Host 127.0.0.1
Pragma no-cache
Referer http://127.0.0.1/qlikview/index.htm
User-Agent Mozilla/5.0 (X11; Linux x86_64…) Gecko/20100101 Firefox/60.0
X-Requested-With XMLHttpRequest

But have another response when use apache

Response headers (195 B)
Cache-Control no-cache, no-store
Connection Keep-Alive
Content-Length 0
Content-Type text/html; charset=UTF-8
Date Fri, 09 Nov 2018 05:02:35 GMT
Expires Fri, 09 Nov 2018 04:02:35 GMT
Keep-Alive timeout=5, max=96
Pragma no-cache
Server Apache/2.4.6 (CentOS)
Set-Cookie AccessPointSession=f9af94d1-50…ba3cc3dd7a7; path=/; HTTPOnly
Request headers (385 B)
Accept */*
Accept-Encoding gzip, deflate
Accept-Language en-US,en;q=0.5
Cache-Control no-cache
Connection keep-alive
Host 127.0.0.1
Pragma no-cache
Referer http://127.0.0.1/qlikview/login.htm
User-Agent Mozilla/5.0 (X11; Linux x86_64…) Gecko/20100101 Firefox/60.0
X-Requested-With XMLHttpRequest
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 281
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready