[H-GEN] Multiple Domains - Apache

Sarah Walters sarah at walters.id.au
Tue Apr 29 18:09:25 EDT 2008


On 29/04/2008, Menno Smits <menno at freshfoo.com> wrote:
>
> You can avoid the need for extra VirtualHosts by using ServerAlias.
> Something like:
>
> <VirtualHost *>
>    ServerName www.domaina.com
>    ServerAlias domaina.com
>    ...
>    (Rewrite domaina.com to www.domaina.com)
> </VirtualHost>
>
> Hope that helps,
> Menno



Thanks, Menno. I knew there was a better way to do it! And this avoids the
need for the rewrite engine, which does result in a performance hit (I'm not
sure how much). If you can leave the rewrite engine off that's a good thing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.humbug.org.au/pipermail/general/attachments/20080430/09a67fd6/attachment.html>


More information about the General mailing list