# 6.5.0 NGINX reverse proxy not working anymore

**URL:** <https://discuss.elastic.co/t/6-5-0-nginx-reverse-proxy-not-working-anymore/157299>\
**Category:** Kibana\
**Created:** [November 19, 2018, 8:42am UTC](https://discuss.elastic.co/t/6-5-0-nginx-reverse-proxy-not-working-anymore/157299 "2018-11-19T08:42:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sjaak01](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sjaak01](https://discuss.elastic.co/u/Sjaak01)\
**Post date:** [November 19, 2018, 8:42am UTC](https://discuss.elastic.co/t/6-5-0-nginx-reverse-proxy-not-working-anymore/157299/1 "2018-11-19T08:42:17Z")

</div>

Hi,

Seems 6.5.0 broke my NGINX reverse proxy?

sites-available/kibana

```
server {
        listen 80 default_server;
        listen [::]:80 default_server;

         server_name 192.168.0.115 (kibana and nginx running on same server) ;

    location /kibana/ {
        proxy_pass http://localhost:5601/;
    }
}

```

kibana.yml

> ```
> server.port: 5601
> server.host: "localhost"
> server.basePath: "/kibana"
> elasticsearch.username: "user"
> elasticsearch.password: "pass"
> xpack.security.enabled: true
> elasticsearch.url: "elasticcloud"
> 
> ```

The same was working fine under 6.4.2.

---

<div class="post-metadata">

**Author:** ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)\
**Post date:** [November 19, 2018, 5:43pm UTC](https://discuss.elastic.co/t/6-5-0-nginx-reverse-proxy-not-working-anymore/157299/2 "2018-11-19T17:43:12Z")

</div>

I gave a quick try and reproducing this on localhost and didn't have any luck. The configs look fine though. Can you share what errors you're getting?

---

<div class="post-metadata">

**Author:** ![Sjaak01](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sjaak01](https://discuss.elastic.co/u/Sjaak01)\
**Post date:** [November 19, 2018, 11:34pm UTC](https://discuss.elastic.co/t/6-5-0-nginx-reverse-proxy-not-working-anymore/157299/3 "2018-11-19T23:34:56Z")

</div>

I get the default NGINX welcome page, which is kinda of strange. Same happens when I try another port than 80.

I'm far from an NGINX expert so I'm a bit at a loss. Don't see any errors in the logs either.

---

<div class="post-metadata">

**Author:** ![Sjaak01](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sjaak01](https://discuss.elastic.co/u/Sjaak01)\
**Post date:** [November 21, 2018, 12:44am UTC](https://discuss.elastic.co/t/6-5-0-nginx-reverse-proxy-not-working-anymore/157299/4 "2018-11-21T00:44:40Z")

</div>

I don't know why but reverse proxies now only work if you don't set the base path.

Nginx:  
server {  
listen 80 default\_server;  
listen [::]:80 default\_server ipv6only=on;

```
# root /var/www/example.com/html;
# index index.html index.htm;

    server_name my-server-ip;

location / {
# rewrite /kibana/(.*) /$1 break;
        proxy_pass http://localhost:5601;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }
}

```

Kibana.yml

> server.port: 5601  
> server.host: "localhost"  
> #server.basePath: "/kibana"  
> #kibana.defaultAppId: "dashboard"  
> elasticsearch.username: "user"  
> elasticsearch.password: "pass"  
> xpack.security.enabled: true  
> elasticsearch.url: "[https://elasticsearch](https://elasticsearch)"

---

<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:** [December 19, 2018, 12:44am UTC](https://discuss.elastic.co/t/6-5-0-nginx-reverse-proxy-not-working-anymore/157299/5 "2018-12-19T00:44:42Z")

</div>

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