# Keycloak Admin Console + NGINX

**URL:** <https://forum.keycloak.org/t/keycloak-admin-console-nginx/603>\
**Category:** Getting advice\
**Tags:** admin-console\
**Created:** [December 4, 2019, 6:06am UTC](https://forum.keycloak.org/t/keycloak-admin-console-nginx/603 "2019-12-04T06:06:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ferry](https://avatars.discourse-cdn.com/v4/letter/f/b4bc9f/32.png) [@ferry](https://forum.keycloak.org/u/ferry)\
**Post date:** [December 4, 2019, 6:06am UTC](https://forum.keycloak.org/t/keycloak-admin-console-nginx/603/1 "2019-12-04T06:06:37Z")

</div>

Hi All,  
I was configuring Keycloak which run in my local **192.168.0.1:8080**.  
Since I want to make it as a Secured website, I installed NGINX and configure the server key inside the NGINX, and then i proxy pass to my Keycloak **192.168.0.1:8080**.

It is working fine when my clients application try to connect into my https Keycloak.  
But when I try to login to my admin console. It will give me an error redirect url is not valid.  
So what I did is I go to the admin console client and then add my https Keycloak as a valid redirect url. -\> it is working, error message is gone.

But when I login into the admin console. it keep on reloading the page, and then show a different url while reloading.

Did anyone stumble on this error before?  
Thanks

---

<div class="post-metadata">

**Author:** ![jangaraj](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/jangaraj/32/5175_2.png) [@jangaraj](https://forum.keycloak.org/u/jangaraj)\
**Post date:** [December 4, 2019, 7:53am UTC](https://forum.keycloak.org/t/keycloak-admin-console-nginx/603/2 "2019-12-04T07:53:16Z")

</div>

Did you follow server installation instructions [https://www.keycloak.org/docs/latest/server\_installation/index.html#\_setting-up-a-load-balancer-or-proxy](https://www.keycloak.org/docs/latest/server_installation/index.html#_setting-up-a-load-balancer-or-proxy) ?

For example:

> Configuring your proxy to generate the `X-Forwarded-For` and `X-Forwarded-Proto` HTTP headers and preserving the original `Host`

---

<div class="post-metadata">

**Author:** ![ferry](https://avatars.discourse-cdn.com/v4/letter/f/b4bc9f/32.png) [@ferry](https://forum.keycloak.org/u/ferry)\
**Post date:** [December 4, 2019, 12:10pm UTC](https://forum.keycloak.org/t/keycloak-admin-console-nginx/603/3 "2019-12-04T12:10:50Z")

</div>

Thanks sir, I just add it as in the documentation and it is working now. (how can i missed out that ☹)
