[keycloak-user] Return 503 (Service Unvailable) instead of 404 (File Not found) during keycloak server restarts

David Delbecq david_delbecq at trimble.com
Mon Jan 30 06:15:42 EST 2017


According to this documentation
https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/7.0/paged/configuration-guide/appendix-a-reference-material
there should be a default-response-code in tehe host config. But i couldn't
find it in wildfly undertow subsystem. Maybe the best would be to deploy a
ROOT.war which map /auth/* requests to 503 response ?

On Mon, Jan 30, 2017 at 11:31 AM Thomas Darimont <
thomas.darimont at googlemail.com> wrote:

> Hello group,
>
> the undertow servlet-container is started pretty early during the startup
> of the
> wildfly application server. However the initialization of the keycloak
> server
> application might take a while to complete. Within this period requests
> that are
> sent to the keycloak endpoints result in responses with HTTP Status Code
> 404.
>
> Is it possible to configure undertow to return a HTTP Status Code 503
> (Service Unvailable)
> until the keycloak application startup has completed?
>
> This would ease configuring load-balancers and to avoid showing a 404
> to users during server restarts.
>
> Cheers,
> Thomas
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
-- 
<http://www.trimble.com/>
David Delbecq
Software engineer, Transport & Logistics
Geldenaaksebaan 329, 1st floor | 3001 Leuven
+32 16 391 121 <+32%2016%20391%20121> Direct
david.delbecq at trimbletl.com
<http://www.trimbletl.com/>


More information about the keycloak-user mailing list