Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-221

Undertow mod_cluster proxy enforces aliases checks a.k.a. UseAlias:true

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.DR9
    • 7.0.0.DR2, 7.0.0.DR3, 7.0.0.DR5
    • Undertow
    • Hide

      Play with aliases and hostnames

      Show
      Play with aliases and hostnames

      If one uses hostnames and a worker registers itself e.g. as Host=karm.brq.redhat.com the Undertow mod_cluster proxy enforces exact alias matching, which corresponds to Apache HTTP Server mod_cluster module implementation directive UseAlias being set to 1 (enforcing).

      Symptoms

      Thus registered worker's context:

      INFO  [io.undertow] (default task-3) registering context /clusterbench, for node worker-1, 
      with aliases [default-host, localhost]
      

      causes HTTP 404 errors both while trying to access the context on IP address or hostname.
      This worker:

      INFO  [io.undertow] (default task-20) registering context /clusterbench, for node worker-1, 
      with aliases [default-host, karm.brq.redhat.com]
      

      , with one of its aliases being karm.brq.redhat.com could be accessed via the Undertow mod_cluster proxy without problems.

      Call to action

      We need to decide whether this difference in default behaviour is desirable or not and act accordingly.

      WDYT?

            sdouglas1@redhat.com Stuart Douglas
            mbabacek1@redhat.com Michal Karm
            Michal Karm Michal Karm
            Michal Karm Michal Karm
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: