Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-455

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.3.0.Beta1
    • 1.2.6.Final, 1.3.0.Beta1, 1.3.0.Beta2
    • Proxy
    • None
    • 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 (Inactive)
              mbabacek1@redhat.com Karm Karm
              Karm Karm Karm Karm
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: