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

Too Many Redirects #852

Closed
sirastynax opened this issue Jan 30, 2021 · 12 comments
Closed

Too Many Redirects #852

sirastynax opened this issue Jan 30, 2021 · 12 comments

Comments

@sirastynax
Copy link

Checklist

What is troubling you?
Most likely a configuration problem on my end, but I cannot seem to get Force SSL to work. I keep getting Too Many Redirects.

Currently using:
v 2.7.3
Chrome Browser and Edge
Both subdomain certificate and wildcard certificate

It is most likely a configuration I missed somewhere, but not sure where.

@Barbait
Copy link

Barbait commented Jan 31, 2021

+1 i'm interested as well

@lieven121
Copy link

If you manually go to the https website (with force ssl off) does this work?

@sirastynax
Copy link
Author

Sorry I did not get an alert there were responses to this message.

The sites I was having an issue with were all http sites that I was proxying a connection to. I did however find part of the configuration issues that I had. Force SSL may not work with CloudFlare proxying. Since I was not able to get it to work at the server level, I enabled Strict SSL Enforcement on CloudFlare.

@mwgaillardetz
Copy link

@sirastynax I have been working on this for days and your solution was the only one that fixed my error. Thank you sir!!

@chaptergy
Copy link
Collaborator

Yeah, often Cloudflare is causing issues just like in this case. The cloudflare proxy does not actually follow the redirect nginx sends, which results in this error. You probably need to set the SSL/TLS encryption mode to Full or Full (Strict) or remove the additional CloudFlare proxy.

Source

@fahadshery
Copy link

Yeah, often Cloudflare is causing issues just like in this case. The cloudflare proxy does not actually follow the redirect nginx sends, which results in this error. You probably need to set the SSL/TLS encryption mode to Full or Full (Strict) or remove the additional CloudFlare proxy.

Source

this solved my issue. had to change the settings in cloud flare

@wiqram
Copy link

wiqram commented Dec 17, 2021

Yeah, often Cloudflare is causing issues just like in this case. The cloudflare proxy does not actually follow the redirect nginx sends, which results in this error. You probably need to set the SSL/TLS encryption mode to Full or Full (Strict) or remove the additional CloudFlare proxy.

Source

solved my issue. been at it for days on and off. damn such a simple change...

@Berg1042
Copy link

Berg1042 commented Apr 3, 2022

I met this issue too, @wiqram , could you please tell me what is your changed? thanks

@ghost
Copy link

ghost commented Apr 9, 2022

Sorry I did not get an alert there were responses to this message.

The sites I was having an issue with were all http sites that I was proxying a connection to. I did however find part of the configuration issues that I had. Force SSL may not work with CloudFlare proxying. Since I was not able to get it to work at the server level, I enabled Strict SSL Enforcement on CloudFlare.

Is the location for this setting in: website (the domain i have listedn in cloudflare) > rules > page rules > create new rule > SSL: full or SSL: full strict.

This does not solve the issue entirely - i am now able to access the site however all formatting for the website is broken, its now basic HTML and any bitton press on the option on the menu shows the error "this page isnt redirecting properly)

@cye18
Copy link

cye18 commented Jun 15, 2022

Sorry I did not get an alert there were responses to this message.
The sites I was having an issue with were all http sites that I was proxying a connection to. I did however find part of the configuration issues that I had. Force SSL may not work with CloudFlare proxying. Since I was not able to get it to work at the server level, I enabled Strict SSL Enforcement on CloudFlare.

Is the location for this setting in: website (the domain i have listedn in cloudflare) > rules > page rules > create new rule > SSL: full or SSL: full strict.

This does not solve the issue entirely - i am now able to access the site however all formatting for the website is broken, its now basic HTML and any bitton press on the option on the menu shows the error "this page isnt redirecting properly)

@ultrask14 Thanks for the instruction. Same here. I can access the site but the format is messed up. Did you by chance find a fix?

@cye18
Copy link

cye18 commented Jun 15, 2022

Sorry I did not get an alert there were responses to this message.
The sites I was having an issue with were all http sites that I was proxying a connection to. I did however find part of the configuration issues that I had. Force SSL may not work with CloudFlare proxying. Since I was not able to get it to work at the server level, I enabled Strict SSL Enforcement on CloudFlare.

Is the location for this setting in: website (the domain i have listedn in cloudflare) > rules > page rules > create new rule > SSL: full or SSL: full strict.
This does not solve the issue entirely - i am now able to access the site however all formatting for the website is broken, its now basic HTML and any bitton press on the option on the menu shows the error "this page isnt redirecting properly)

@ultrask14 Thanks for the instruction. Same here. I can access the site but the format is messed up. Did you by chance find a fix?

@ultrask14 I got it. It's not in Page Rules. It's under SSL/TSL -> Overview.
image
It works for me.

@baldunderwear
Copy link

Yeah, often Cloudflare is causing issues just like in this case. The cloudflare proxy does not actually follow the redirect nginx sends, which results in this error. You probably need to set the SSL/TLS encryption mode to Full or Full (Strict) or remove the additional CloudFlare proxy.

Source

Sorry I did not get an alert there were responses to this message.
The sites I was having an issue with were all http sites that I was proxying a connection to. I did however find part of the configuration issues that I had. Force SSL may not work with CloudFlare proxying. Since I was not able to get it to work at the server level, I enabled Strict SSL Enforcement on CloudFlare.

Is the location for this setting in: website (the domain i have listedn in cloudflare) > rules > page rules > create new rule > SSL: full or SSL: full strict.
This does not solve the issue entirely - i am now able to access the site however all formatting for the website is broken, its now basic HTML and any bitton press on the option on the menu shows the error "this page isnt redirecting properly)

@ultrask14 Thanks for the instruction. Same here. I can access the site but the format is messed up. Did you by chance find a fix?

@ultrask14 I got it. It's not in Page Rules. It's under SSL/TSL -> Overview. image It works for me.

Worked for me as well!

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

10 participants