# Kibana - Apache proxy reverse

**URL:** <https://discuss.elastic.co/t/kibana-apache-proxy-reverse/89291>\
**Category:** Kibana\
**Created:** [June 14, 2017, 4:07am UTC](https://discuss.elastic.co/t/kibana-apache-proxy-reverse/89291 "2017-06-14T04:07:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![amruthapbhat](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@amruthapbhat](https://discuss.elastic.co/u/amruthapbhat)\
**Post date:** [June 14, 2017, 4:07am UTC](https://discuss.elastic.co/t/kibana-apache-proxy-reverse/89291/1 "2017-06-14T04:07:23Z")

</div>

Hi,

I have used X-pack for ES and kibana and using SSL enabling with apache. The configs are as below

Apache config:

\<VirtualHost \*:80\>  
ServerName [my-example.com](http://my-example.com)  
ServerAlias [my-example.com](http://my-example.com)  
Redirect permanent / [https://my-example.com](https://my-example.com)  
ProxyRequests Off  
ProxyVia On

\<VirtualHost \*:443\>  
ServerName [my-example.com](http://my-example.com)  
ServerAlias [my-example.com](http://my-example.com)  
  
Options FollowSymLinks  
AuthType Basic  
AuthName "admin"  
AuthUserFile /etc/apache2/.htpasswd  
Require valid-user  
ProxyPass [http://127.0.0.1:5601/](http://127.0.0.1:5601/)  
ProxyPassReverse [http://127.0.0.1:5601/](http://127.0.0.1:5601/)  
  
SSLEngine on

SSLCertificateFile certificate path  
SSLCertificateKeyFile key path

Kibana.yml:

server.host: \< IP Address of the instance\>  
[server.name](http://server.name): "[my-example.com](http://my-example.com)"  
elasticsearch.url: "[http://ipaddress:9200](http://ipaddress:9200)"  
server.ssl.cert: certificate path  
server.ssl.key: key path

The issue is when i try to login to [https://my-example.com](https://my-example.com), the kibana page does not open but when i use [https://my-example.com:5601](https://my-example.com:5601) then the kibana page opens.

Could you please let me know if iam missing out any configs?

---

<div class="post-metadata">

**Author:** ![spalger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spalger/32/14092_2.png) [@spalger](https://discuss.elastic.co/u/spalger)\
**Post date:** [June 14, 2017, 4:51pm UTC](https://discuss.elastic.co/t/kibana-apache-proxy-reverse/89291/2 "2017-06-14T16:51:48Z")

</div>

I'm not sure how to configure apache, but it seems like you are actually talking to the kibana server when you access [https://my-example.com:5601](https://my-example.com:5601), and not Apache.

---

<div class="post-metadata">

**Author:** ![amruthapbhat](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@amruthapbhat](https://discuss.elastic.co/u/amruthapbhat)\
**Post date:** [June 15, 2017, 3:27am UTC](https://discuss.elastic.co/t/kibana-apache-proxy-reverse/89291/3 "2017-06-15T03:27:08Z")

</div>

@spalge I am using apaphe as reverse proxy to connect to Kibana. I want to connect to Kibana only with the DNS name not with DNS:5601. Is there a way to work around this?

---

<div class="post-metadata">

**Author:** ![spalger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spalger/32/14092_2.png) [@spalger](https://discuss.elastic.co/u/spalger)\
**Post date:** [June 15, 2017, 8:50am UTC](https://discuss.elastic.co/t/kibana-apache-proxy-reverse/89291/4 "2017-06-15T08:50:16Z")

</div>

Do you need the apache proxy? You could also just set Kibana to listen on port 80 with the `server.port` option.

Alternatively, I could help more if you were using nginx, but i don't know how apache works 😕

---

<div class="post-metadata">

**Author:** ![amruthapbhat](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@amruthapbhat](https://discuss.elastic.co/u/amruthapbhat)\
**Post date:** [June 15, 2017, 9:03am UTC](https://discuss.elastic.co/t/kibana-apache-proxy-reverse/89291/5 "2017-06-15T09:03:43Z")

</div>

@spalger even if I install ngnix I would still have the issue where I need to address kibana with the DNS:5601 right as this has to be ssl enabled.

---

<div class="post-metadata">

**Author:** ![amruthapbhat](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@amruthapbhat](https://discuss.elastic.co/u/amruthapbhat)\
**Post date:** [June 16, 2017, 4:11am UTC](https://discuss.elastic.co/t/kibana-apache-proxy-reverse/89291/6 "2017-06-16T04:11:28Z")

</div>

@spalger could you please let me know how i could browse to kibana without the port no using ngnix?

---

<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 14, 2017, 4:11am UTC](https://discuss.elastic.co/t/kibana-apache-proxy-reverse/89291/7 "2017-07-14T04:11:33Z")

</div>

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