# Using XPack Auth behind Apache Proxy

**URL:** <https://discuss.elastic.co/t/using-xpack-auth-behind-apache-proxy/123277>\
**Category:** Elasticsearch\
**Created:** [March 9, 2018, 2:05pm UTC](https://discuss.elastic.co/t/using-xpack-auth-behind-apache-proxy/123277 "2018-03-09T14:05:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Giuseppe\_Merlo](https://avatars.discourse-cdn.com/v4/letter/g/a88e57/32.png) [@Giuseppe\_Merlo](https://discuss.elastic.co/u/Giuseppe_Merlo)\
**Post date:** [March 9, 2018, 2:05pm UTC](https://discuss.elastic.co/t/using-xpack-auth-behind-apache-proxy/123277/1 "2018-03-09T14:05:51Z")

</div>

Hi everyone,

as title says, i'm trying to connect my Elasticsearch server and Kibana Dashboard to XPack through Apache Proxy.

I inserted these URLs in Proxy configuration:

ProxyPass /login ip:port/login  
ProxyPassReverse /login ip:port/login

ProxyPass /app/kibana ip:port/app/kibana  
ProxyPassReverse /app/kibana ip:port/app/kibana

and other more links to make all working (I can't post the whole configuration).

When i try to reach my Kibana path from my personal laptop, Apache proxy returns the correct login page to me.

Here is the problem: when i login with correct credentials, something goes wrong and Apache Proxy doesn't return my Kibana dashboard to me.

Locally, everything works fine. I think it's a redirect problem, isn't it?

NB. Sorry for my bad english.

Thanks a lot in advance.

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [March 10, 2018, 12:00am UTC](https://discuss.elastic.co/t/using-xpack-auth-behind-apache-proxy/123277/2 "2018-03-10T00:00:23Z")

</div>

Hi Giuseppe, could you take a look at these related posts and see if they help you?

- [Kibana 5 behind reverse proxy](https://discuss.elastic.co/t/kibana-5-behind-reverse-proxy/75573/4)
- [Proxy pass for security always redirects to kibana port?](https://discuss.elastic.co/t/proxy-pass-for-security-always-redirects-to-kibana-port/73411/3)

Thanks,  
CJ

---

<div class="post-metadata">

**Author:** ![Giuseppe\_Merlo](https://avatars.discourse-cdn.com/v4/letter/g/a88e57/32.png) [@Giuseppe\_Merlo](https://discuss.elastic.co/u/Giuseppe_Merlo)\
**Post date:** [March 15, 2018, 2:19pm UTC](https://discuss.elastic.co/t/using-xpack-auth-behind-apache-proxy/123277/3 "2018-03-15T14:19:57Z")

</div>

Hi CJ,

thanks for your reply!

I tried your solutions but the first one doesn't work and the second one is not the solution i want. I don't want an Apache authentication (if possible).

Thank you so much

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 12, 2018, 2:19pm UTC](https://discuss.elastic.co/t/using-xpack-auth-behind-apache-proxy/123277/4 "2018-04-12T14:19:58Z")

</div>

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