[nSLUG] Multiple Domains - Apache

Robert McKay robert at mckay.com
Mon Apr 28 20:45:14 ADT 2008


On Tue, Apr 29, 2008 at 12:40 AM, Deepan <codeshepherd at gmail.com> wrote:
[snip]

>  However all requests to http://domainb.com/ gets
>  redirected to http://www.domaina.com  whereas the
>  expected behaviour is to get redirected to
>  http://www.domainb.com/ .

You need to add ServerAlias domainb.com to the virtualhost so that it
will match requests going to domainb.com as well as requests for
www.daomainb.com.

Rob.



More information about the nSLUG mailing list