You can add the default-response-code attribute in the host element of
the undertow subsystem to make it return 503 by default.
Stuart
On Mon, Jan 30, 2017 at 9:34 PM, Thomas Darimont
<thomas.darimont(a)googlemail.com> wrote:
Hello group,
(coss-post from keycloak-user Mailing List)
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 file not
found
to users during server restarts.
Cheers,
Thomas
_______________________________________________
undertow-dev mailing list
undertow-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/undertow-dev