Uploaded image for project: 'mod_cluster'
  1. mod_cluster
  2. MODCLUSTER-122

Advertise does not work on name-based virtual hosts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.0.2.GA
    • Fix Version/s: 1.0.4.GA
    • Component/s: None
    • Labels:
      None
    • Affects:
      Documentation (Ref Guide, User Guide, etc.), Compatibility/Configuration
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Use ServerAdvertise On [URL] or dont believe the docs

      Show
      Use ServerAdvertise On [URL] or dont believe the docs

      Description

      If you use Apache httpd name-based virtual hosts on the server with multiple IPs (without explicit configuration parameter ServerAdvertise On http://hostname:port), advertise does not work and sends 0.0.0.0 IP address to the back-end. This is problem when you have back-end server on the physically another machine.

      Module should use ServerName from the VirtualHost configuration value in this case (or this case should be documented).

      Refer to official Apache 2.2 documentation for more information on Name-based Virtual Host Support
      http://httpd.apache.org/docs/2.2/vhosts/name-based.html

      Snip from mod_cluster docs:
      > ServerAdvertise On http://hostname:port: Tell the hostname and port to use. Only needed if the VirtualHost is not
      > defined correctly or when VirtualHost is not used.

      Sample configuration:
      <VirtualHost *:8888>
      ServerName perf10
      ...
      </VirtualHost>

        Attachments

          Activity

            People

            Assignee:
            rhn-engineering-jclere Jean-Frederic Clere
            Reporter:
            rhn-engineering-rhusar Radoslav Husar
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: