[GH-ISSUE #852] Too Many Redirects #721

Closed
opened 2026-02-26 06:34:08 +03:00 by kerem · 14 comments
Owner

Originally created by @sirastynax on GitHub (Jan 30, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/852

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.

Originally created by @sirastynax on GitHub (Jan 30, 2021). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/852 **Checklist** - Please read the [setup instructions](https://nginxproxymanager.com/setup/) -Yup - Please read the [FAQ](https://nginxproxymanager.com/faq/) - Yup **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.
kerem 2026-02-26 06:34:08 +03:00
Author
Owner

@Barbait commented on GitHub (Jan 31, 2021):

+1 i'm interested as well

<!-- gh-comment-id:770445140 --> @Barbait commented on GitHub (Jan 31, 2021): +1 i'm interested as well
Author
Owner

@lieven121 commented on GitHub (Feb 11, 2021):

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

<!-- gh-comment-id:777283188 --> @lieven121 commented on GitHub (Feb 11, 2021): If you manually go to the https website (with force ssl off) does this work?
Author
Owner

@sirastynax commented on GitHub (Feb 26, 2021):

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.

<!-- gh-comment-id:786798702 --> @sirastynax commented on GitHub (Feb 26, 2021): 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.
Author
Owner

@mwgaillardetz commented on GitHub (Nov 6, 2021):

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

<!-- gh-comment-id:962449013 --> @mwgaillardetz commented on GitHub (Nov 6, 2021): @sirastynax I have been working on this for days and your solution was the only one that fixed my error. Thank you sir!!
Author
Owner

@chaptergy commented on GitHub (Nov 6, 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

<!-- gh-comment-id:962503046 --> @chaptergy commented on GitHub (Nov 6, 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. <sup>[Source](https://stackoverflow.com/questions/35143193/cloudflare-and-nginx-too-many-redirects/64853372#64853372)</sup>
Author
Owner

@fahadshery commented on GitHub (Nov 19, 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

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

<!-- gh-comment-id:974129813 --> @fahadshery commented on GitHub (Nov 19, 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](https://stackoverflow.com/questions/35143193/cloudflare-and-nginx-too-many-redirects/64853372#64853372) this solved my issue. had to change the settings in cloud flare
Author
Owner

@wiqram commented on GitHub (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...

<!-- gh-comment-id:996577975 --> @wiqram commented on GitHub (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](https://stackoverflow.com/questions/35143193/cloudflare-and-nginx-too-many-redirects/64853372#64853372) solved my issue. been at it for days on and off. damn such a simple change...
Author
Owner

@Berg1042 commented on GitHub (Apr 3, 2022):

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

<!-- gh-comment-id:1086804020 --> @Berg1042 commented on GitHub (Apr 3, 2022): I met this issue too, @wiqram , could you please tell me what is your changed? thanks
Author
Owner

@ghost commented on GitHub (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)

<!-- gh-comment-id:1093841036 --> @ghost commented on GitHub (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)
Author
Owner

@cye18 commented on GitHub (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?

<!-- gh-comment-id:1155950196 --> @cye18 commented on GitHub (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?
Author
Owner

@cye18 commented on GitHub (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.

<!-- gh-comment-id:1155954337 --> @cye18 commented on GitHub (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](https://user-images.githubusercontent.com/83248325/173733684-7596fe94-48d7-49d5-bb61-e86ac308bd31.png) It works for me.
Author
Owner

@baldunderwear commented on GitHub (Feb 20, 2024):

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!

<!-- gh-comment-id:1954612514 --> @baldunderwear commented on GitHub (Feb 20, 2024): > 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](https://stackoverflow.com/questions/35143193/cloudflare-and-nginx-too-many-redirects/64853372#64853372) > > > > 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](https://user-images.githubusercontent.com/83248325/173733684-7596fe94-48d7-49d5-bb61-e86ac308bd31.png) It works for me. Worked for me as well!
Author
Owner

@thraizz commented on GitHub (Nov 19, 2024):

The UI changed here, you need to go to "SSL/TLS Overview" in the sidebar, then click "configure".
image

Then you need to select "Custom SSL/TLS" there the option "Full (strict)" and then "save".
image

<!-- gh-comment-id:2485492301 --> @thraizz commented on GitHub (Nov 19, 2024): The UI changed here, you need to go to "SSL/TLS Overview" in the sidebar, then click "configure". ![image](https://github.com/user-attachments/assets/8ec012f7-d41a-453a-ab11-84572cc155e2) Then you need to select "Custom SSL/TLS" there the option "Full (strict)" and then "save". ![image](https://github.com/user-attachments/assets/77b51d2c-c41e-4c11-ba28-caf29d379a03)
Author
Owner

@antwal commented on GitHub (Jan 30, 2025):

i have the same problem it is not solved if i enable Force SSL and include this in the config

Force SSL

include conf.d/include/force-ssl.conf;

<!-- gh-comment-id:2624103263 --> @antwal commented on GitHub (Jan 30, 2025): i have the same problem it is not solved if i enable Force SSL and include this in the config # Force SSL include conf.d/include/force-ssl.conf;
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#721
No description provided.