httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject Re: [users@httpd] grab header to redirect
Date Wed, 09 Aug 2006 15:30:37 GMT
On 8/9/06, Declerck Michael-W30479 <> wrote:
> Hello,
> Is there a way to grab a header/DNS name using Apache 2.2?
> A little background:
> I have a primary DNS name and a secondary DNS name that maps to the same
> IP address.
> Right now, my Apache 2.2 configuration redirects the client directly to
> the page using the directives:
> <IfModule dir_module>
>     DirectoryIndex
> </IfModule>
> when the DNS routes the client to my server.
> The secondary DNS name will also route to the same IP, thus serving
> for the second DNS name as well, which is not what I want to
> do.
> I have been informed that the secondary DNS name will not change in the
> browser when it routes to the server.
> Is there a way to grab this DNS name (would this be found as a header?)
> and redirect the client based on what that name is?
> I have a little bit of experience with mod_rewrite, but that experience
> is nominal at best.

Sounds like you are looking for:


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