[Mailman-Developers] CGI variables question - hostname used in URL

Ken Manheimer klm@python.org
Tue, 12 May 1998 19:15:20 -0400 (EDT)


On Tue, 12 May 1998, Barry A. Warsaw wrote:

> >>>>> "KM" == Ken Manheimer <klm@python.org> writes:
> 
>     KM> Running apache (1.2.0), i see that HTTP_HOST has the info i
>     KM> need, and can compare that with the list's host_name (checking
>     KM> whether one includes the other or vice versa), excluding those
>     KM> lists that do not.  However, it does not look like HTTP_HOST
>     KM> is by any means universal.
> 
> SERVER_NAME is the standard I think.

That's the official name of the server - not the name by which the page
was visited.  Ie, on visiting http://parrot.cnri.reston.va.us/mailman/listinfo

  HTTP_HOST: parrot.cnri.reston.va.us
  SERVER_NAME: www.python.org

I want to display the lists that belong to the effective host being
visited (the virtual host?), so i need the info contained in HTTP_HOST.

ken