Gmane
Gravatar
From: Eric Covener <covener <at> gmail.com>
Subject: Re: Problem with DynDns and Apache Virtual Hosts
Newsgroups: gmane.comp.apache.user
Date: 2008-10-08 22:02:13 GMT (12 weeks, 6 days, 11 hours and 7 minutes ago)
2008/10/8 Bartłomiej Siwek <barsiwek <at> interia.pl>:

> The problem is that whatever subdomain i enter:
> user1.somedomain.selfip.org
> user1.somedomain.selfip.org
> (even a non-existent ones line - idontexist.somedomain.selfip.org) i get the
> site form first virtual host.
> What could be the problem.

That's just how it works, the first one defined in a NameVirtualHost
set is the default/catch-all.

>
> On further investigation I found out that a server responds to requests with
> a 301 (Moved Permanently) response, then the browser tries to connect to the
> url pointing a page from the first domain.

Maybe a redirect setup by your distros packaging in your default vhost.

-- 
Eric Covener
covener <at> gmail.com