httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Andersson" <>
Subject Re: [users@httpd] ServerAlias Syntax
Date Sat, 20 Sep 2003 00:42:24 GMT
Clint Davis wrote:
> I want to configure multiple domains to be directed to a single virtual
> host. Here are the domains:
> (my ServerName)
> Can I configure my virtual host directive like this to take care of all
> domains above?
> ServerAlias: *mydomain*

I will admit I'm not sure. I'd use:

    ServerAlias *.mydomain.* mydomain.*

Note, that this will not cause a redirect though, which is usually good so
there aren't different links all over the web actually pointing to the same
contents. To do that, simply do:

    <VirtualHost *>
    <VirtualHost *>
        ServerName something
        ServerAlias *.mydomain.* mydomain.*
        Redirect /

Robert Andersson

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