When setting force_ssl = 1 the application goes into an infinite redirecting loop. The browser stops when it notices he’s going nowhere.
Piwik is installed on Nginx, HTTPs is enabled and working, certificate is OK.
Has anyone gone through this matter?
Likely this is a server configuration error. are you using reverse proxy or so? maybe the HTTPS flag is not set in the header? please report if you find the cause of the bug as I’d like to update FAQ to mention this troubleshooting tip!
No trace of SSL related header. What header should it be?
About the redirect, I would expect Piwik to check also the port (443) to avoid infinite loop.
Anyways, it is working on my system now:
nginx listens on port 80
it redirect all requests on port 443
nginx listens on port 443
it hosts the Piwik app
piwik is configured to use SSL
I found by chance this setting:
[General]
assume_secure_protocol = 1
Now everything works except that Nginx DOES the redirect to HTTPs instead of Piwik but it doesn’t matter to me.
I was getting this too. My site was using nginx and I configure piwik on a SSL site, but the non-https site just get the default nginx install web page. This is prevent drive by scirpt kiddies scanning for piwik sites. The problem that started all of this was broken images in the report, viewing page source reveled absolute links using http and not https.