[lug] Re: url redirect through dns

Chris Roberts croberts at ihs.com
Mon Jun 11 12:22:49 MDT 2001


You'll need to use name based virtual hosts.

<VirtualHost your.ip.address>
        ServerName www.domain1.com
        ....
</VirtualHost>
<VirtualHost your.ip.address>
        ServerName www.domain2.com
        ....
</VirtualHost>

Chris Roberts
Systems Administrator
Information Handling Services

> From: <charles at lunarmedia.net>
> To: LUG-DISCUSS <lug at lug.boulder.co.us>
> Subject: [lug] url redirect through dns
> Reply-To: lug at lug.boulder.co.us
>
> i have a client who has two domains pointing to one website. within dns,
> they both resolve to the same ip address. the client considers one of the
> domains to be more of a marketing ploy rather than the primary domain. he
> would like users typing domain2.com in their browser to reach the website,
> however to have the address rewritten in their browser as domain1.com.
>
> i think this can be done through the apache config, but i'm not sure how.
> anyone know?


More information about the LUG mailing list