# NGINX Load Balancer with x-pack security

**URL:** <https://discuss.elastic.co/t/nginx-load-balancer-with-x-pack-security/140221>\
**Category:** Elasticsearch\
**Created:** [July 16, 2018, 9:48pm UTC](https://discuss.elastic.co/t/nginx-load-balancer-with-x-pack-security/140221 "2018-07-16T21:48:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steph\_van\_Schalkwyk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steph_van_schalkwyk/32/98653_2.png) [@Steph\_van\_Schalkwyk](https://discuss.elastic.co/u/Steph_van_Schalkwyk)\
**Post date:** [July 16, 2018, 9:48pm UTC](https://discuss.elastic.co/t/nginx-load-balancer-with-x-pack-security/140221/1 "2018-07-16T21:48:11Z")

</div>

Trying to use NGINX LB when x-pack security is configured.  
I don't want to use NGINX Basic Auth, as thet efeats the purpose of x-pack security.  
Are there any guielines to o this? I can't seem to pass the user:password combination up to the upstream.  
ES:6.3.1

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [July 17, 2018, 11:04am UTC](https://discuss.elastic.co/t/nginx-load-balancer-with-x-pack-security/140221/2 "2018-07-17T11:04:51Z")

</div>

I think you'd be better asking this in an nginx forum - it's not really an Elastic issue, and we're not really nginx experts.

If you post your current nginx config, then we're happy to try and help, but nginx experts would do a better job.

---

<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:** [August 14, 2018, 11:04am UTC](https://discuss.elastic.co/t/nginx-load-balancer-with-x-pack-security/140221/3 "2018-08-14T11:04:51Z")

</div>

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