# OH3 with Microsoft IIS Reverse Proxy and Authentication

**URL:** <https://community.openhab.org/t/oh3-with-microsoft-iis-reverse-proxy-and-authentication/142774>\
**Category:** Installation\
**Tags:** iis\
**Created:** [December 31, 2022, 3:54pm UTC](https://community.openhab.org/t/oh3-with-microsoft-iis-reverse-proxy-and-authentication/142774 "2022-12-31T15:54:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![justaoldman](https://community.openhab.org/letter_avatar_proxy/v4/letter/j/c68b51/32.png) [@justaoldman](https://community.openhab.org/u/justaoldman)\
**Post date:** [January 1, 2023, 5:41am UTC](https://community.openhab.org/t/oh3-with-microsoft-iis-reverse-proxy-and-authentication/142774/2 "2023-01-01T05:41:42Z")

</div>

Hi Jay,  
those are set in the server variables  
I posted on this with pics here.

> [@OpenHab 3 with IIS Reverse Proxy on Windows Server 2019 setup issue](https://community.openhab.org/t/openhab-3-with-iis-reverse-proxy-on-windows-server-2019-setup-issue/136485/7):
>
> Hi Max, after you change the ARR settings try adding these steps in the inbound rule add this \<set name="RESPONSE\_Set\_Cookie" value="X-OPENHAB-AUTH-HEADER=1" /\> in the server variables add this \<add name="RESPONSE\_Set\_Cookie" /\> In Openhab under your settings and then API security check advanced and then enable Allow basic authentication and save! with those settings and the added steps I have mentioned I think you will get the behavior you want. I have included this full web config a…

What I showed should work regardless of whether you are running on a RPI or docker or nux or windows the internal side can run either secure or not that should be irrelevant assuming your internal IIS NIC is able to resolve your internal FQDN of the Openhab RPI or you configured it with IP as for the IIS exposed to the internet If you are fully sealed it will work the configuration setup I outlined does not care if it is internal or external facing and the IIS setup is pretty much MSFT recommended configuration.

---

_[View the full topic](https://community.openhab.org/t/oh3-with-microsoft-iis-reverse-proxy-and-authentication/142774)._
