# How to get graylog running behind a proxy?

**URL:** <https://community.graylog.org/t/how-to-get-graylog-running-behind-a-proxy/5716>\
**Category:** Graylog Central (peer support)\
**Created:** [June 23, 2018, 4:35pm UTC](https://community.graylog.org/t/how-to-get-graylog-running-behind-a-proxy/5716 "2018-06-23T16:35:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![amitshar04](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/amitshar04/32/2672_2.png) [@amitshar04](https://community.graylog.org/u/amitshar04)\
**Post date:** [June 23, 2018, 4:35pm UTC](https://community.graylog.org/t/how-to-get-graylog-running-behind-a-proxy/5716/1 "2018-06-23T16:35:45Z")

</div>

I need to host my Graylog URL using proxy server i.e haproxy

i am trying to use Private\_IP:9000 in haproxy

backend graylog\_cluster  
mode http  
option http-keep-alive  
balance roundrobin  
option forwardfor  
cookie JSESSIONID prefix

```
    server graylog01 Private-IP:9000 cookie A check

```

I am able to telnet the from my proxy server ( haproxy )  
Private\_IP:9000

Please help !!  
Thanks

---

<div class="post-metadata">

**Author:** ![amitshar04](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/amitshar04/32/2672_2.png) [@amitshar04](https://community.graylog.org/u/amitshar04)\
**Post date:** [June 23, 2018, 5:10pm UTC](https://community.graylog.org/t/how-to-get-graylog-running-behind-a-proxy/5716/2 "2018-06-23T17:10:26Z")

</div>

No worry, issue has been resolved now 🙂

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [June 24, 2018, 12:12pm UTC](https://community.graylog.org/t/how-to-get-graylog-running-behind-a-proxy/5716/3 "2018-06-24T12:12:30Z")

</div>

it would be pleaseful if you would share with the community how you have solved your issue and what had helped you!

thanks  
Jan

---

<div class="post-metadata">

**Author:** ![amitshar04](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/amitshar04/32/2672_2.png) [@amitshar04](https://community.graylog.org/u/amitshar04)\
**Post date:** [June 25, 2018, 5:59am UTC](https://community.graylog.org/t/how-to-get-graylog-running-behind-a-proxy/5716/4 "2018-06-25T05:59:46Z")

</div>

sure @jan 🙂 I did the following things…  
frontend http  
bind 0.0.0.0:80

```
option forwardfor
http-request add-header X-Forwarded-Host %[req.hdr(host)]
http-request add-header X-Forwarded-Server %[req.hdr(host)]
http-request add-header X-Forwarded-Port %[dst_port]
acl is_graylog hdr_dom(host) -i -m str graylog_url_domain
use_backend graylog if is_graylog

```

backend graylog  
description The Graylog Web backend.  
http-request set-header X-Graylog-Server-URL https://graylog\_url\_domain/api  
use-server graylog\_1  
server graylog\_1 Private\_IP:9000 maxconn 20 check

I got these details in graylog doc.

[http://docs.graylog.org/en/2.4/pages/configuration/web\_interface.html#haproxy-1-6](http://docs.graylog.org/en/2.4/pages/configuration/web_interface.html#haproxy-1-6)

I used lets-encrypt to enable ssl

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [July 9, 2018, 5:59am UTC](https://community.graylog.org/t/how-to-get-graylog-running-behind-a-proxy/5716/5 "2018-07-09T05:59:49Z")

</div>

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