Bug? Proxy redirect to root after login success - instead of staying within assigned sub-folder


#1

After login it goes to https://www.my_domain.com/ instead of staying in https://www.my_domain.com/piwik/

I discovered this strange behavior.

this is the apache config file

ProxyHTMLEnable  on
ProxyHTMLExtended on
ProxyHTMLURLMap  http://192.168.1.2:8081 https://www.my_domain.com/piwik
SetOutputFilter  proxy-html
RequestHeader    unset  Accept-Encoding

This is parts of my config.ini.php file

[General]
assume_secure_protocol = 1
force_ssl = 1
trusted_hosts[] = "192.168.1.2:8081"

; Uncomment line below if you use a standard proxy
;proxy_client_headers[] = HTTP_X_FORWARDED_FOR
proxy_host_headers[] = HTTP_X_FORWARDED_HOST

If I go back to the login page, and do a reload, piwik redirects correctly to the application just like I had a successful login. Is my setup wrong, or is this a bug?


SSL proxy redirects to root at login
#2

Dear courtens,

we are experiencing the same Problem in this setup. Did you find any solution so far? Thanks for any suggestions!

Best


#3

This bug is still active.

Workaround: The only way to log in is to return to the log in page (after log in) to not be redirected to the root folder. I hope this helps.

Here to bug report