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

ERR_TOO_MANY_REDIRECTS with HTTPS = 'On' #3155

Closed
b2z opened this issue Jan 18, 2021 · 7 comments
Closed

ERR_TOO_MANY_REDIRECTS with HTTPS = 'On' #3155

b2z opened this issue Jan 18, 2021 · 7 comments

Comments

@b2z
Copy link

b2z commented Jan 18, 2021

Hello,

We have a hosting that has server HTTPS var set as On instead of on. These produces the loop redirect with ERR_TOO_MANY_REDIRECTS as a final error. The dirty fix is to set $_SERVER['HTTPS'] = 'on' to the index.php, but I am sure it is too dirty :)

@b2z
Copy link
Author

b2z commented Jan 18, 2021

Thanks. I will test the fix and let you know.

@mahagr mahagr added fixed and removed fixed in 1.7 labels Jan 20, 2021
@mahagr mahagr closed this as completed Jan 20, 2021
@Sulpher
Copy link

Sulpher commented Mar 5, 2021

This patch disappeared in the latest version of Grav. Please return it back ;-)
I mean the problem occur again after updating Grav, so I had to add the line $_SERVER['HTTPS'] = 'on' to index.php again.

@Sulpher
Copy link

Sulpher commented Mar 5, 2021

UPD: the front-end works, the admin panel gets endless redirects.
If I add this line:
$_SERVER['HTTPS'] = 'on'

then the admin panel is loading correctly.

@mahagr
Copy link
Member

mahagr commented Mar 8, 2021

You cannot just manually patch the files, every update removes all your changes. Please create a new issue about the admin redirect and try to provide more information about your setup.

@Sulpher
Copy link

Sulpher commented Mar 8, 2021

Sorry, but I have no idea what additional information can be provided from my side.
We use the latest version of Grav and PHP 7.4.10.
I found this issue, the patch of index.php helped. I shared this info.

@mahagr
Copy link
Member

mahagr commented Mar 11, 2021

It looks like your server isn't using HTTPS then, or fails to report on that. Do you have some kind of proxy setup?

@mahagr
Copy link
Member

mahagr commented Mar 31, 2021

Ok, there was another issue in admin. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants