Problems with apache and virtual hosts.

Roger rnodal at gmail.com
Tue Oct 27 22:09:27 UTC 2009


Well, it turns out that the problem was that I had:
ServerAlias "domain.com www.domain.com",
by doing that I was actually creating one host and not two.
The correct way to do it would be:
ServerAlias "domain.com" "www.domain.com"
or
ServerAlias domain.com www.domain.com

Thank you,

-r


On Tue, Oct 27, 2009 at 5:20 PM, Hal Burgiss <hal at burgiss.net> wrote:
> On Tue, Oct 27, 2009 at 2:27 PM, Roger <rnodal at gmail.com> wrote:
>> A little update,
>>
>> If I remove all the aliases that start with "www" then I can access
>> vhost2 with not problems.
>> But I would also like to access the vhost using www.
>> I really cannot understand why www.domain003.com - www.domain006 will
>> not match for vhost2.
>
> I've always done it all on one line, with commas between aliases. Not
> sure you are allowed more than one per vhost.
>
>
> --
> Hal
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>




More information about the ubuntu-users mailing list