httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael B Allen <>
Subject Re: [users@httpd] Canonicalizing Domains / Hostnames
Date Thu, 07 Jul 2011 01:40:20 GMT
On Wed, Jul 6, 2011 at 8:59 PM, Sean Conner <> wrote:
> It was thus said that the Great Michael B Allen once stated:
>> Hi All,
>> I have a site that is accessible through multiple hostnames like:
>> but I only want the site to be accessible through the first hostname
>> ( and How can I
>> block these other hostnames? I have been using Apache for many years
>> but I'm drawing a blank as to where to begin with this. Can someone
>> give me a pointer?
>  The easiest might be to set the non-preferred domains to redirect to the
> preferred domain.  Something like:
> <VirtualHost>
>  ServerName
>  Redirect      permanent       /
> </VirtualHost>
>  That will redirect all requests to and
> to your preferred domain name, and at least as far as Google
> goes, the Page Rank for the non-preferred sites will be transferred to the
> preferred domain name.

Hi Sean,

Ok. But I already have:

<VirtualHost *:80>

Can I have multiple VirtualHost sections with the same address (*:80)
or expressions that overlap logically?


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