# Pfsense haproxy and error nextcloud

**URL:** <https://help.nextcloud.com/t/pfsense-haproxy-and-error-nextcloud/187880>\
**Category:** ℹ️ Support\
**Tags:** reverseproxy, pfsense\
**Created:** [April 11, 2024, 5:28am UTC](https://help.nextcloud.com/t/pfsense-haproxy-and-error-nextcloud/187880 "2024-04-11T05:28:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frank\_Pl](https://help.nextcloud.com/user_avatar/help.nextcloud.com/frank_pl/32/38393_2.png) [@Frank\_Pl](https://help.nextcloud.com/u/Frank_Pl)\
**Post date:** [April 11, 2024, 5:28am UTC](https://help.nextcloud.com/t/pfsense-haproxy-and-error-nextcloud/187880/1 "2024-04-11T05:28:10Z")

</div>

Hello everyone, I use nextcloud and in the summary information the following inscription appears:

```auto
The reverse proxy header configuration is incorrect

```

I think this is an error regarding HTTP “X-Forwarded-For” . I’ve tried different configurations by reading a little on the forums, but nothing to do.

Has anyone solved it?

---

<div class="post-metadata">

**Author:** ![LeoStehlik](https://help.nextcloud.com/user_avatar/help.nextcloud.com/leostehlik/32/52665_2.png) [@LeoStehlik](https://help.nextcloud.com/u/LeoStehlik)\
**Post date:** [April 11, 2024, 6:59am UTC](https://help.nextcloud.com/t/pfsense-haproxy-and-error-nextcloud/187880/2 "2024-04-11T06:59:24Z")

</div>

Based on the limited information you provided on your environment, I bet it’s the obvious first usual suspect to look into: check your Nextcloud’s config.php file and check if you have correct entry for ‘trusted\_proxies’ =\> parameter.

---

<div class="post-metadata">

**Author:** ![Frank\_Pl](https://help.nextcloud.com/user_avatar/help.nextcloud.com/frank_pl/32/38393_2.png) [@Frank\_Pl](https://help.nextcloud.com/u/Frank_Pl)\
**Post date:** [April 11, 2024, 8:51am UTC](https://help.nextcloud.com/t/pfsense-haproxy-and-error-nextcloud/187880/3 "2024-04-11T08:51:35Z")

</div>

Hi leo, I’ve tried all the syntaxes, but it keeps giving an error. If you know how to do it, could you give me a valid example? My proxy-ha has an ip 192.168.3.2

Thank you

---

<div class="post-metadata">

**Author:** ![LeoStehlik](https://help.nextcloud.com/user_avatar/help.nextcloud.com/leostehlik/32/52665_2.png) [@LeoStehlik](https://help.nextcloud.com/u/LeoStehlik)\
**Post date:** [April 11, 2024, 8:55am UTC](https://help.nextcloud.com/t/pfsense-haproxy-and-error-nextcloud/187880/4 "2024-04-11T08:55:08Z")

</div>

`'trusted_proxies' => 'http://your proxy ip address:your proxy port',`

---

<div class="post-metadata">

**Author:** ![Frank\_Pl](https://help.nextcloud.com/user_avatar/help.nextcloud.com/frank_pl/32/38393_2.png) [@Frank\_Pl](https://help.nextcloud.com/u/Frank_Pl)\
**Post date:** [April 13, 2024, 7:34pm UTC](https://help.nextcloud.com/t/pfsense-haproxy-and-error-nextcloud/187880/5 "2024-04-13T19:34:49Z")

</div>

Hi Leo , I wanted to tell you that after several attempts to configure on the truste\_proxies , I finally managed to delete the warning related to the header of the proxy headers . The change consists of adding the proxy name fqdn to the array. e.g. ‘myproxy.fdqn’ . It doesn’t report anything on my server anymore.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [January 16, 2025, 8:30am UTC](https://help.nextcloud.com/t/pfsense-haproxy-and-error-nextcloud/187880/6 "2025-01-16T08:30:46Z")

</div>


