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

Advertise does not work on name-based virtual hosts

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.4.GA
    • 1.0.2.GA
    • None
    • None
    • Documentation (Ref Guide, User Guide, etc.), Compatibility/Configuration
    • Workaround Exists
    • Hide

      Use ServerAdvertise On [URL] or dont believe the docs

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

      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>

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

                Created:
                Updated:
                Resolved: