Hey Meissa,
I'm running Keycloak in a similar setup, and it's working for me.
My tip is to remove the "https://" from the hostname and to add the following:
proxy-headers=xforwarded
I can't 100% recall for sure, but I think I had a similar redirect issue when I had "https://" in the hostname behind a load-balanced setup. It'll still use HTTPS. But in a proxied setup, I think it generates URLs like "https://
https://blahblah" and I think that causes the issue.
Anyway, try removing "https://" from the start of the hostname in keycloak.conf and add that "proxy-headers" config. It should sort it for you I think.
David Cook
Senior Software Engineer
Prosentient Systems
Suite 7.03
6a Glen St
Milsons Point NSW 2061
Australia
Office: 02 9212 0899
-----Original Message-----
From: 'Meissa M'baye Sakho' via Keycloak User <
keyclo...@googlegroups.com>
Sent: Thursday, 19 June 2025 6:26 PM
To: Keycloak User <
keyclo...@googlegroups.com>
Subject: [keycloak-user] Unwanted Loadbalancer redirection
Hi all,
I'm facing an issue while trying to access the admin console from the load balancer that I've configured.
I'm deploying Keycloak 26.2.5 on AWS EC2(VM mode then).
I've configured an ALB loadbalancer.
The issue seems to be related to the hostname configuration.
Below is my keycloak.conf
db=postgres
db-username=rhbk_user
db-password=rhbk_password
db-url-host=
rhbk.cjcwi4qmgvnp.eu-west-2.rds.amazonaws.com <
http://rhbk.cjcwi4qmgvnp.eu-west-2.rds.amazonaws.com>
Meissa Sakho, RHCA <
https://rhtapps.redhat.com/verify?certId=130-083-785> , AWS SAA <
https://www.credly.com/badges/e34855dd-c1d2-424a-8856-e9860b08e54a/public_url>
Principal Architect
Red Hat EMEA <
https://www.redhat.com/>
msa...@redhat.com <mailto:
msa...@redhat.com>
+33695597778
<
https://www.redhat.com/>
--
You received this message because you are subscribed to the Google Groups "Keycloak User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
keycloak-use...@googlegroups.com <mailto:
keycloak-use...@googlegroups.com> .
To view this discussion visit
https://groups.google.com/d/msgid/keycloak-user/CAF83W6%2BwdfhkL5Qiuk0YRy1iO37EoFep%3Dw_Yz9HJvW6d_HFEgg%40mail.gmail.com <
https://groups.google.com/d/msgid/keycloak-user/CAF83W6%2BwdfhkL5Qiuk0YRy1iO37EoFep%3Dw_Yz9HJvW6d_HFEgg%40mail.gmail.com?utm_medium=email&utm_source=footer> .