# Plugins through a Nginx Reverse Proxy

**URL:** <https://discuss.elastic.co/t/plugins-through-a-nginx-reverse-proxy/50856>\
**Category:** Elasticsearch\
**Created:** [May 24, 2016, 2:55pm UTC](https://discuss.elastic.co/t/plugins-through-a-nginx-reverse-proxy/50856 "2016-05-24T14:55:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michel\_Laporte](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@Michel\_Laporte](https://discuss.elastic.co/u/Michel_Laporte)\
**Post date:** [May 24, 2016, 2:55pm UTC](https://discuss.elastic.co/t/plugins-through-a-nginx-reverse-proxy/50856/1 "2016-05-24T14:55:44Z")

</div>

Hi,  
Im having a real nightmare

Im running an instance of ES on a box and i also have Nginx installed on the box also. This box is purely for the Plugins associated with ES.

I have 3 plugins , Kopf, BigDesk & ElasticHQ

However, KOPF works through the Nginx. I had to edit kopf\_external\_settings.json and set Elasticsearch\_root\_path "/es" Then have a Nginx Location of /es to proxy pass to localhost:9200.

location ~ ^/es._$ {  
proxy\_pass [http://localhost:9200](http://localhost:9200);  
rewrite ^/es(._) /$1 break;  
}

location ~ ^/kopf/._$ {  
proxy\_pass [http://localhost:9200](http://localhost:9200);  
rewrite ^/kopf/(._) /\_plugin/kopf/$1 break;  
auth\_basic "Restricted Content";  
auth\_basic\_user\_file /etc/nginx/.htpasswd;  
}

That works perfectly.

However, all other plugins doesn't seem to want to work. It loads the index.html but doesn't want to connect to the ES instance.

I have the Location sex exactly the same:

location ~ ^/bigdesk/.\*$ {

```
    proxy_pass http://localhost:9200;
    proxy_redirect off;
    rewrite ^/bigdesk/(.*) /_plugin/bigdesk/$1 break;
    #auth_basic "Restricted Content";
    #auth_basic_user_file /etc/nginx/.htpasswd;

```

Is there anything i have to set in ES for this to work?  
I've looked at Cors setting also and have set my cors.enabled to true in the ES YML and set the Allowed Origins to "\*".

HTTP.Host is set to 127.0.0.1

Thank you,

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 24, 2016, 3:13pm UTC](https://discuss.elastic.co/t/plugins-through-a-nginx-reverse-proxy/50856/2 "2016-05-24T15:13:23Z")

</div>

Can't answer to your question but just want to highlight that site plugin support is removed in 5.0.  
So frontend devs are invited to move their plugins to Kibana.

---

<div class="post-metadata">

**Author:** ![Michel\_Laporte](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@Michel\_Laporte](https://discuss.elastic.co/u/Michel_Laporte)\
**Post date:** [May 24, 2016, 3:27pm UTC](https://discuss.elastic.co/t/plugins-through-a-nginx-reverse-proxy/50856/3 "2016-05-24T15:27:02Z")

</div>

Hey  
Im not using Kibana sorry i should of stated.

Im just trying to access the plugins through an RP. All recourses online everyone solves the issue but never write back to their posts saying how they fixed it ☹

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 24, 2016, 3:46pm UTC](https://discuss.elastic.co/t/plugins-through-a-nginx-reverse-proxy/50856/4 "2016-05-24T15:46:15Z")

</div>

I know you are not using Kibana.

I was just saying that whatever solution you find it won't work with 5.0.

---

<div class="post-metadata">

**Author:** ![Michel\_Laporte](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@Michel\_Laporte](https://discuss.elastic.co/u/Michel_Laporte)\
**Post date:** [May 24, 2016, 3:51pm UTC](https://discuss.elastic.co/t/plugins-through-a-nginx-reverse-proxy/50856/5 "2016-05-24T15:51:51Z")

</div>

Hi Sorry,

I thought you meant Kibana.

V5 of what? Im using ES 2.3.2

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 24, 2016, 4:10pm UTC](https://discuss.elastic.co/t/plugins-through-a-nginx-reverse-proxy/50856/6 "2016-05-24T16:10:38Z")

</div>

Next major version of elastic stack will be 5.0

---

<div class="post-metadata">

**Author:** ![Michel\_Laporte](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@Michel\_Laporte](https://discuss.elastic.co/u/Michel_Laporte)\
**Post date:** [May 24, 2016, 4:13pm UTC](https://discuss.elastic.co/t/plugins-through-a-nginx-reverse-proxy/50856/7 "2016-05-24T16:13:50Z")

</div>

Ah okidoki 🙂 I get you.  
Thanks Dadoonet

---

<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:** [July 5, 2017, 10:49pm UTC](https://discuss.elastic.co/t/plugins-through-a-nginx-reverse-proxy/50856/8 "2017-07-05T22:49:28Z")

</div>


