# Kibana behind Apache Reverse Proxy

**URL:** <https://discuss.elastic.co/t/kibana-behind-apache-reverse-proxy/235501>\
**Category:** Kibana\
**Created:** [June 3, 2020, 9:19am UTC](https://discuss.elastic.co/t/kibana-behind-apache-reverse-proxy/235501 "2020-06-03T09:19:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sarmad](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@Sarmad](https://discuss.elastic.co/u/Sarmad)\
**Post date:** [June 3, 2020, 9:19am UTC](https://discuss.elastic.co/t/kibana-behind-apache-reverse-proxy/235501/1 "2020-06-03T09:19:16Z")

</div>

Hello,

I am deploying Kibana behind Apache Reverse Proxy, getting all the help from the links from this forum.  
However I am stuck at this point.  
If I add server.basepath= "/kibana" in kibana.yml, kibana doesn't load and shows 404 error

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/5/a55d892b3748ec9c47df1a47c803ace6e7e0a3f3.png)  
These are my settings for apache config file

```auto
        ServerName kibana
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
	
	ProxyPass /kibana http://127.0.0.1:5601/
	ProxyPassReverse /kibana http:127.0.0.1:5601/

        ProxyPass /app/kibana http://127.0.0.1:5601/app/kibana/
	ProxyPassReverse /app/kibana http://127.0.0.1:5601/app/kibana/

	ProxyPass /bundles http://localhost:5601/bundles/
	ProxyPassReverse /bundles http://localhost:5601/bundles/

	ProxyPass /elasticsearch/ http://localhost:9200
	ProxyPassReverse /elasticsearch/ http://3v218.cv.hp.com:9200

	ProxyPass /status http://localhost:5601/status
	ProxyPassReverse /status http://localhost:/status

	ProxyPass /api/status http://localhost:5601/api/status
	ProxyPassReverse /api/status http://localhost:5601/api/status

	ProxyPass /api/console http://localhost:5601/api/console
	ProxyPassReverse /api/console http://localhost:5601/api/console

	ProxyPass /plugins/kibana/ http://localhost:5601/plugins/kibana/
	ProxyPassReverse /plugins/kibana/ http://localhost:5601/plugins/kibana/

	ProxyPass /plugins/timelion/ http://localhost:5601/plugins/timelion/
	ProxyPassReverse /plugins/timelion/ http://localhost:5601/plugins/timelion/

	ProxyPass /app/sense http://localhost:5601/app/sense
	ProxyPassReverse /app/sense http://localhost:5601/app/sense

	ProxyPass /ui/fonts/open_sans/ http://localhost:5601/ui/fonts/open_sans/
	ProxyPassReverse /ui/fonts/open_sans/ http://localhost:5601/ui/fonts/open_sans/

	ProxyPass /es_admin/ http://localhost:5601/es_admin/
	ProxyPassReverse /es_admin/ http://localhost:5601/es_admin/

        <Location />
          Order allow,deny
          Allow from all
        </Location>

   </VirtualHost>

```

Any clues? Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![mikecote](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikecote/32/58549_2.png) [@mikecote](https://discuss.elastic.co/u/mikecote)\
**Post date:** [June 18, 2020, 4:31pm UTC](https://discuss.elastic.co/t/kibana-behind-apache-reverse-proxy/235501/2 "2020-06-18T16:31:43Z")

</div>

From a quick look, it seems the URL in chrome is wrong? It should be `localhost:5601/kibana` instead of `localhost:5601/app/kibana/spaces/enter` (flip "app" and "kibana" portions).

---

<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 16, 2020, 4:31pm UTC](https://discuss.elastic.co/t/kibana-behind-apache-reverse-proxy/235501/3 "2020-07-16T16:31:48Z")

</div>

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