httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Flower <M...@Project.Net>
Subject [users@httpd] Setting the ServerName variable per request
Date Tue, 17 Sep 2002 17:13:52 GMT
I've recently started to host an application that was previously hosted on
IIS.  After reading through the documentation and the mailing list, I've
learned that ServerName is generally going to be or some static
value that you set it to.

Additionally you can use virtual hosts to set it, as in the following:

    ServerName demo1
    ServerName demo2

Unfortunately, this creates a bit of a setup hassle.  I would like to always
set the server name environment variable to the server name that was passed
to apache.

To explain in a bit more detail, if I were to set up a new DNS entry for
demo3 and a user accessed the web site with http://demo3, I'd like the
application server to get the proper server name without having to do any
additional setup in the httpd.conf.  Is this possible?
Thanks in Advance,
Matthew Flower 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message