# Someone using haproxy reverse proxy?

**URL:** <https://community.zammad.org/t/someone-using-haproxy-reverse-proxy/8520>\
**Category:** Technical assistance\
**Created:** [January 24, 2022, 10:51pm UTC](https://community.zammad.org/t/someone-using-haproxy-reverse-proxy/8520 "2022-01-24T22:51:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjschratt](https://community.zammad.org/user_avatar/community.zammad.org/cjschratt/32/419_2.png) [@cjschratt](https://community.zammad.org/u/cjschratt)\
**Post date:** [January 24, 2022, 10:51pm UTC](https://community.zammad.org/t/someone-using-haproxy-reverse-proxy/8520/1 "2022-01-24T22:51:08Z")

</div>

HI,  
I have a debian 10 with zammad 5.0.3 source installation. I have only one ip address so I need a reverse proxy to be able to use multiple servers. In the past I used nginx but I want to change to haproxy and ssl termination. Every other server in my system seems to run fine, but zammad makes some troubles. It seems to work, but not 100% stable.  
Does someone use also haproxy as reverse proxy and can help me with a working configuration?  
Thanks,  
Christian.

---

<div class="post-metadata">

**Author:** ![nublaii](https://community.zammad.org/letter_avatar_proxy/v4/letter/n/a9a28c/32.png) [@nublaii](https://community.zammad.org/u/nublaii)\
**Post date:** [January 25, 2022, 1:40pm UTC](https://community.zammad.org/t/someone-using-haproxy-reverse-proxy/8520/2 "2022-01-25T13:40:35Z")

</div>

Well… I still need to update to 5.0.3, so I’m not sure if something is different.

Anyway, you can try with this simple version:

```auto
frontend lb
        mode http
        bind your_listening_ip:443 name your_listening_ip:443 tfo ssl crt /etc/ssl/private alpn h2,http/1.1
        bind your_listening_ip:80 name your_listening_ip:80
        option forwardfor

        acl host_zammad hdr(host) -i zammad.url

        redirect scheme https code 301 if host_zammad !{ ssl_fc }
        http-request add-header X-Forwarded-Proto https if { ssl_fc }

        use_backend http_zammad if host_zammad

backend http_zammad
        description zammad backend, http
        mode http
        server zammad_server your_zammad_ip:80 check inter 5000

```

---

<div class="post-metadata">

**Author:** ![cjschratt](https://community.zammad.org/user_avatar/community.zammad.org/cjschratt/32/419_2.png) [@cjschratt](https://community.zammad.org/u/cjschratt)\
**Post date:** [January 26, 2022, 5:27am UTC](https://community.zammad.org/t/someone-using-haproxy-reverse-proxy/8520/3 "2022-01-26T05:27:12Z")

</div>

Hi,  
thank’s for the quick response.  
This is more than less the config I have, but it always ends in an: CSRF token verification failed!  
If I don’t use SSL Termination, than it works fine, since I added a little bit more timeout for the server.  
Any idea?

---

<div class="post-metadata">

**Author:** ![system](https://community.zammad.org/uploads/default/original/1X/5c5afaea2d23f811dbec33cd4edb02fa29d3262f.png) [@system](https://community.zammad.org/u/system)\
**Post date:** [May 26, 2022, 5:27am UTC](https://community.zammad.org/t/someone-using-haproxy-reverse-proxy/8520/4 "2022-05-26T05:27:57Z")

</div>

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.
