# Nginx and Discourse is redirect looping with SSL

**URL:** <https://meta.discourse.org/t/nginx-and-discourse-is-redirect-looping-with-ssl/50048>\
**Category:** Self-hosting\
**Created:** [September 12, 2016, 11:43pm UTC](https://meta.discourse.org/t/nginx-and-discourse-is-redirect-looping-with-ssl/50048 "2016-09-12T23:43:34Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Semaphorism](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/semaphorism/32/61600_2.png) [@Semaphorism](https://meta.discourse.org/u/Semaphorism)\
**Post date:** [September 13, 2016, 5:16am UTC](https://meta.discourse.org/t/nginx-and-discourse-is-redirect-looping-with-ssl/50048/4 "2016-09-13T05:16:45Z")

</div>

Well, apparently I was wrong.

I am still having the redirect loop issue, but only on some of my devices, and some browsers. I am completely unsure what is happening now, and could use help from someone with good experience with nginx.

I should also mention the website is behind cloudflare, which may have a factor in this issue, or could be the issue itself, unsure.

Edit: I disabled routing through cloudflare, and it appears to have resolved my issue, so take note, if you have a redirect issue using when using cloudflare, try disabling the routing for a bit of time and see if it fixes it. If you can’t disable that, then try changing your DNS to your server manually via hosts file.

---

_[View the full topic](https://meta.discourse.org/t/nginx-and-discourse-is-redirect-looping-with-ssl/50048)._
