On Fri, 3 Sep 2004, Jeff Wilson wrote:

In my pf/carp setup, the two boxes are also serving out http (port 80 and 443). Let's call the "real" hostnames A and B, and the carp hostname, HOST. My clients refer to a subdirectory on http://HOST/subdir and it redirects them to http://A/subdir/ to fill the request. However, my ruleset prevents port 80 from reaching A or B directly -- all 80/443 must go to the carp address, HOST.

[ Now for the part where I'm going to get toasted: ]

Anybody know what part of httpd.conf tells Apache to do this redirection? I'm looking for a directive that says, "No, really, my hostname is not `hostname` but HOST!"

Pardon my original OT post ... someone was nice enough to send me the answer off-list. For the archives, here's what I learned:

Look up "ServerName" and "UseCanonicalName" ...

  Regards,
  jw

Reply via email to