# Admin console not accessible with keycloak version 25.0.0 and hostname V2 configurations

**URL:** <https://forum.keycloak.org/t/admin-console-not-accessible-with-keycloak-version-25-0-0-and-hostname-v2-configurations/27689>\
**Category:** Miscellanaeous\
**Tags:** admin-console\
**Created:** [September 1, 2024, 1:02pm UTC](https://forum.keycloak.org/t/admin-console-not-accessible-with-keycloak-version-25-0-0-and-hostname-v2-configurations/27689 "2024-09-01T13:02:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mshri628](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@mshri628](https://forum.keycloak.org/u/mshri628)\
**Post date:** [September 1, 2024, 1:02pm UTC](https://forum.keycloak.org/t/admin-console-not-accessible-with-keycloak-version-25-0-0-and-hostname-v2-configurations/27689/1 "2024-09-01T13:02:55Z")

</div>

I am currently running Keycloak version 25.0.0 in production, configured with an NGINX reverse proxy. My goal is to use Keycloak with the host `https:// somehost. com` for public access while restricting access to the admin console to my internal network using its IP and port directly.

Here are my current Keycloak hostname v2 configurations:  
KC\_HOSTNAME=[https://abc.com](https://abc.com) # Public hostname for the web app  
KC\_HOSTNAME\_PORT=8080 # Port where Keycloak is running  
KC\_HOSTNAME\_ADMIN=[http://localhost:8080/auth](http://localhost:8080/auth) # URL to access the admin console internally  
KC\_HTTP\_ENABLED=true

**Problem:**

When running Keycloak with the above configuration, I am unable to access the admin console. Specifically, the requests for some resources required to render the admin UI are being sent to the frontend host (i.e., `KC_HOSTNAME`) instead of `KC_HOSTNAME_ADMIN`.

For example:

- Initial request and JavaScript and CSS resources are correctly routed to `KC_HOSTNAME_ADMIN`. Ex - “auth/admin/master/console/”, “auth/resources/zre7y/admin/keycloak.v2/assets/index-C1LIsRX7.js”
- However, some resources (e.g., html) are incorrectly routed to `KC_HOSTNAME`. Ex “resources/master/admin/en”,  
“realms/master/protocol/openid-connect/3p-cookies/step1.html”  
 ![image](https://global.discourse-cdn.com/free1/uploads/keycloak/original/2X/f/f75312b99aa641c1155e46898f6a55614b7d3f4c.jpeg)

**Additional Note:**

The `/auth` path in the URL is intentional; I recently migrated from version 10 to version 25, and due to legacy reasons, I retained `/auth` as a relative path.

**Assistance Needed:**

Has anyone encountered a similar issue or can provide guidance on how to ensure all admin console resources are correctly routed to `KC_HOSTNAME_ADMIN`?

I am happy to share Docker files or other configuration details if someone wants to replicate the issue on their machine.
