# Kibana 5 IIS reverse proxy

**URL:** <https://discuss.elastic.co/t/kibana-5-iis-reverse-proxy/82479>\
**Category:** Kibana\
**Created:** [April 15, 2017, 4:30pm UTC](https://discuss.elastic.co/t/kibana-5-iis-reverse-proxy/82479 "2017-04-15T16:30:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![FR-TheS](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fr-thes/32/17396_2.png) [@FR-TheS](https://discuss.elastic.co/u/FR-TheS)\
**Post date:** [April 15, 2017, 4:30pm UTC](https://discuss.elastic.co/t/kibana-5-iis-reverse-proxy/82479/1 "2017-04-15T16:30:42Z")

</div>

Hi everyone,

I'm blocked about the configuration of kibana5 behind a IIS reverse proxy.  
I'm trying to redirect myserver/kibana5/ to localhost:5602 (my kibana is cfg with this port because we have two kibana for moment).  
When i'm trying to access to my kibana throught myserver/kibana5/, the url is modified to myserver/app/kibana so it doesn't work.  
Here my IIS cfg :  
\< ?xml version="1.0" encoding="UTF-8"?\>  
\< configuration\>  
\< system.webServer\>  
\< rewrite\>  
\< rules\>  
\< clear /\>  
\< rule name="Redirect to Kibana v5" enabled="true" stopProcessing="true"\>  
\< match url="(._)" /\>  
\< conditions logicalGrouping="MatchAll" trackAllCaptures="false" /\>  
\< action type="Rewrite" url="[http://localhost:5602/{R:1}](http://localhost:5602/%7BR:1%7D)" logRewrittenUrl="false" /\>  
\< /rule\>  
\< /rules\>  
\< rewriteMaps\>  
\< rewriteMap name="(._)" /\>  
\< /rewriteMaps\>  
\< /rewrite\>  
\< /system.webServer\>  
\< /configuration\>

Here my kibana cfg

> ```
> # Kibana is served by a back end server. This setting specifies the port to use.
> server.port: "5602"
> 
> ```

> ```
> # This setting specifies the IP address of the back end server.
> server.host: "0.0.0.0"
> 
> ```

> ```
> # Enables you to specify a path to mount Kibana at if you are running behind a proxy. This setting
> # cannot end in a slash.
> server.basePath: "C:\soft\kibana-5.1.1-windows-x86"
> 
> ```

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [April 17, 2017, 4:38pm UTC](https://discuss.elastic.co/t/kibana-5-iis-reverse-proxy/82479/2 "2017-04-17T16:38:37Z")

</div>

Could you try setting `server.basePath` to `myserver/kibana5`?

---

<div class="post-metadata">

**Author:** ![FR-TheS](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fr-thes/32/17396_2.png) [@FR-TheS](https://discuss.elastic.co/u/FR-TheS)\
**Post date:** [April 18, 2017, 8:02am UTC](https://discuss.elastic.co/t/kibana-5-iis-reverse-proxy/82479/3 "2017-04-18T08:02:57Z")

</div>

Hi,

Thanks for the reply.  
I have set my basebath to "/kibana5" and I can access to Kibana but I have the menu on the left and a blank page.  
It seem not loaded correctly .

Fixed by adding in webconfig :

> \< system.web\>  
> \< httpRuntime requestPathInvalidCharacters="" requestValidationMode="2.0" /\>  
> \< /system.web\>

---

<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:** [May 16, 2017, 8:15am UTC](https://discuss.elastic.co/t/kibana-5-iis-reverse-proxy/82479/4 "2017-05-16T08:15:15Z")

</div>

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