Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

force_ssl_login produces redirect chain #2073

Closed
anonymous-piwik-user opened this Issue · 4 comments

3 participants

Anonymous Piwik user Anthon Pang Matthieu Aubry
Anonymous Piwik user

I am running piwik on nginx with php-fpm and I have configured a vhost for port 80 and one for 443. Both work just fine and I am able to login and use piwik via https.

However if I enable "force_ssl_login" Safari throws a "Too many redirects" error.

When using curl -k -v https://my-host.com/ I'm getting another
HTTP/1.1 302 Moved Temporarily
Location: https://my-host.com/

Is there maybe a header that is missing like X-FORWARDED-PROTO?
Keywords: ssl

Anonymous Piwik user

Hmm, forget the last line - that header should only be relevant in proxy setups

Anthon Pang
Collaborator

Your nginx configuration doesn't appear to set the HTTPS environment variable (which PHP looks for in
$_SERVER['HTTPS']
). Add this to your nginx config:

fastcgi_param HTTPS on;
Anonymous Piwik user

Thank you! That helped!

Anonymous Piwik user anonymous-piwik-user added this to the Piwik 1.2 milestone
Matthieu Aubry mattab added the R: worksforme label
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.