Setting /auth context root for 15.0.2 keycloak

We are using keycloak 15.0.2 version. We are now authenticating using the URL: https://server-name/realms/star-realm/protocol/openid-connect

We need to add the “/auth” context root to the Authentication URL i.e., https://server-name/auth/realms/star-realm/protocol/openid-connect

Tried by setting “–http-relative-path=/auth” but its not working. Could anyone please help on how I can set “/auth” to the authentication url…

With v15, /auth context was default, you could have only configured it to not being used. So, the question is, what did you (or someone in your environment) do, to have Keycloak run on /?
Once you know this, you can just revert it.

On the other hand side, you are running a more than old (> 2,5 years) version of Keycloak which is outdated, has some security vulnerabilities and does not receive any more updates. You really should update your environment be become secure again!

The http-relative-path flag is for Quarkus based distributions only, they started with v17.