[mod_cluster-issues] [JBoss JIRA] (MODCLUSTER-587) Docs: Undertow hosts root location is exposed(by default) to mod_cluster load balancer
Michal Karm (Jira)
issues at jboss.org
Wed Aug 14 03:45:00 EDT 2019
[ https://issues.jboss.org/browse/MODCLUSTER-587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michal Karm closed MODCLUSTER-587.
----------------------------------
Resolution: Out of Date
Closing. Dated.
> Docs: 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
> Priority: Major
>
> 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
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the mod_cluster-issues
mailing list