# CSFR Error while login behind HA Proxy

**URL:** https://meta.discourse.org/t/csfr-error-while-login-behind-ha-proxy/177168
**Category:** Self-hosting
**Created:** [January 25, 2021, 1:16pm UTC](https://meta.discourse.org/t/csfr-error-while-login-behind-ha-proxy/177168 "2021-01-25T13:16:28Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![neounix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neounix/32/215617_2.png) [@neounix](https://meta.discourse.org/u/neounix)
#### Post date: [January 26, 2021, 10:07am UTC](https://meta.discourse.org/t/csfr-error-while-login-behind-ha-proxy/177168/7 "2021-01-26T10:07:02Z")

</div>

> [@crospa91](#):
>
> THANKS! Really I was 3 days I was running around in circles and this solved it!

FWIW, there are many example configurations for reverse proxy servers in front of the Discourse app, including this one, almost all address “X-Forwarded-Proto”:

> [@I want to install using a reverse proxy for Apache](https://meta.discourse.org/t/i-want-to-install-using-a-reverse-proxy-for-apache/158519/5):
>
> Dear @Teraterayuki … Here is an example set of working Apache2 virtual hosts for a reverse proxy to a unix domain socket in a Discourse container: Port 80 \<VirtualHost \*:80\> ServerName mysite.mydomain.com ServerAdmin webmaster@localhost ProxyPreserveHost On #ProxyPass / http://127.0.0.1:8888/ #ProxyPassReverse / http://127.0.0.1:8888/ # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg.…

---

_[View the full topic](https://meta.discourse.org/t/csfr-error-while-login-behind-ha-proxy/177168)._
