]
Bogdan Sikora reassigned MODCLUSTER-587:
----------------------------------------
Assignee: Michal Karm Babacek (was: Radoslav Husar)
Undertow hosts root location is exposed(by default) to mod_cluster
load balancer
--------------------------------------------------------------------------------
Key: MODCLUSTER-587
URL:
https://issues.jboss.org/browse/MODCLUSTER-587
Project: mod_cluster
Issue Type: Bug
Components: Documentation & Demos
Reporter: Bogdan Sikora
Assignee: Michal Karm Babacek
Priority: Critical
Undertow can be configured to serve static content per host via the location resource.
This location resource is exposed to the mod_cluster balancer.
{noformat}
"context" => {
"/custom_location" => {
"requests" => 0,
"status" => "enabled"
},
{noformat}
However, all EAP standalone profiles have enabled root location by default. This root
location is then exposed to the balancer( Application root "/" is registered).
{noformat}
"context" => {
"/" => {
"requests" => 0,
"status" => "enabled"
},
{noformat}
Root application matches with any application call and therefore mod_cluster balancer is
unable to correctly route requests.
To make mod_cluster work, one must delete root location from worker nodes.
{noformat}
/subsystem=undertow/server=default-server/host=default-host/location=\/:remove()
{noformat}
or excluding context ROOT
{noformat}
/subsystem=modcluster/mod-cluster-config=configuration:write-attribute(name=excluded-contexts,value="ROOT")
{noformat}
*_+Proposal:+_*
Exclude ROOT context by default