# How to configure 2 different domain names to the hostname and admin console?

**URL:** <https://forum.keycloak.org/t/how-to-configure-2-different-domain-names-to-the-hostname-and-admin-console/25472>\
**Category:** Configuring the server\
**Tags:** admin-console\
**Created:** [April 9, 2024, 1:25pm UTC](https://forum.keycloak.org/t/how-to-configure-2-different-domain-names-to-the-hostname-and-admin-console/25472 "2024-04-09T13:25:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilangrs](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/ilangrs/32/10193_2.png) [@ilangrs](https://forum.keycloak.org/u/ilangrs)\
**Post date:** [April 9, 2024, 1:25pm UTC](https://forum.keycloak.org/t/how-to-configure-2-different-domain-names-to-the-hostname-and-admin-console/25472/1 "2024-04-09T13:25:33Z")

</div>

Hi team,

I’m running Keycloak via K8S and I need to be able to configure the admin console url with different domain than the hostname url.

I reviewed the following guide:  
[https://www.keycloak.org/server/hostname](https://www.keycloak.org/server/hostname)  
Including the guide about the proxy.

Nothing helped.  
When the domain for the admin url is different I’m getting http code 405.

This is the configuration:

JAVA\_OPTS\_APPEND: \>-  
-Djgroups.thread\_dumps\_threshold=1 -Djboss.site.name=keycloak -Djgroups.dns.query=keycloak-headless.keycloak.svc.cluster.local

KC\_CACHE: ispn  
KC\_CACHE\_STACK: kubernetes  
KC\_DB: postgres  
KC\_DB\_PASSWORD: something  
KC\_DB\_SCHEMA: public  
KC\_DB\_URL: \>-  
someurl  
KC\_DB\_URL\_HOST: \>-  
someurl  
KC\_DB\_USERNAME: keycloak  
KC\_HEALTH\_ENABLED: true  
KC\_HOSTNAME: app.ilan.xyz/auth  
KC\_HOSTNAME\_ADMIN: [https://keycloak-admin-stg.axisapps.io/admin](https://keycloak-admin-stg.axisapps.io/admin)  
KC\_HOSTNAME\_STRICT: false  
KC\_HOSTNAME\_STRICT\_BACKCHANNEL: false  
KC\_HOSTNAME\_STRICT\_HTTPS: false  
KC\_HTTP\_ENABLED: dHJ1ZQ==  
KC\_PROXY: edge  
KEYCLOAK\_ADMIN: admin  
KEYCLOAK\_ADMIN\_PASSWORD: pass  
PROXY\_ADDRESS\_FORWARDING: true  
env\_args: \>-  
start --cache-config-file=cache-ispn.xml --spi-sticky-session-encoder-infinispan-should-attach-route=false --log-console-output=json --metrics-enabled=true

Can you please assist?
