Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

force_ssl_login produces redirect chain #2073

Closed
anonymous-piwik-user opened this issue Feb 7, 2011 · 4 comments
Closed

force_ssl_login produces redirect chain #2073

anonymous-piwik-user opened this issue Feb 7, 2011 · 4 comments
Milestone

Comments

@anonymous-piwik-user
Copy link

@anonymous-piwik-user anonymous-piwik-user commented Feb 7, 2011

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
Copy link
Author

@anonymous-piwik-user anonymous-piwik-user commented Feb 7, 2011

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

@robocoder
Copy link
Contributor

@robocoder robocoder commented Feb 8, 2011

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
Copy link
Author

@anonymous-piwik-user anonymous-piwik-user commented Feb 8, 2011

Thank you! That helped!

@anonymous-piwik-user anonymous-piwik-user added this to the Piwik 1.2 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants