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