# Il tag proxy X-Forwarded-For non è riconosciuto da Discourse?

**URL:** <https://meta.discourse.org/t/x-forwarded-for-proxy-tag-not-recognized-by-discourse/77961>\
**Category:** Self-hosting\
**Created:** [13 Gennaio 2018, 10:35pm UTC](https://meta.discourse.org/t/x-forwarded-for-proxy-tag-not-recognized-by-discourse/77961 "2018-01-13T22:35:45Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Anil\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@Anil\_Gupta](https://meta.discourse.org/u/Anil_Gupta)\
**Post date:** [19 Gennaio 2018, 12:07am UTC](https://meta.discourse.org/t/x-forwarded-for-proxy-tag-not-recognized-by-discourse/77961/6 "2018-01-19T00:07:05Z")

</div>

No ideas? Nobody has tried this set up?

These days, it is pretty common to have a LOAD balance server (using HTTPS) and then have Discourse or any other software sitting behind on HTTP.

Can anybody guide (if they have successfully tried) as to where the redirection rule can be added in Discourse configuration?

I need this rule to be configured:

```
server {
      listen 80;
      server_name www.example.org;
      if ($http_x_forwarded_proto != "https") {
          rewrite ^(.*)$ https://$server_name$REQUEST_URI permanent;
      }
}

```

---

_[View the full topic](https://meta.discourse.org/t/x-forwarded-for-proxy-tag-not-recognized-by-discourse/77961)._
