Date: Wed, 9 Jan 2008 11:03:21 -0500 From: Schiz0 <schiz0phrenic21@gmail.com> To: "zbigniew szalbot" <zbigniew@szalbot.homedns.org> Cc: freebsd-questions@freebsd.org Subject: Re: apache virtual directories / VirtualHost overlap Message-ID: <8d23ec860801090803v53b19441h37f75b03324a5adf@mail.gmail.com> In-Reply-To: <4784EF9C.8040307@szalbot.homedns.org> References: <4784EF9C.8040307@szalbot.homedns.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Jan 9, 2008 11:00 AM, zbigniew szalbot <zbigniew@szalbot.homedns.org> wrote: > Hello, > > Can you help me solve what probably is a very simple problem with > virtual directories. I need to define two different virtual hosts for > the same IP. > > So I defined: > > NameVirtualHost 83.19.156.210 > > <VirtualHost 83.19.156.210> > ServerAdmin webmaster@dummy-host.example.com > DocumentRoot /usr/local/www/data/ > ServerName lists.lc-words.com > ErrorLog /var/log/httpd-error.log > CustomLog /var/log/httpd-access.log common > </VirtualHost> > > <VirtualHost 83.19.156.210> > ServerAdmin webmaster@dummy-host.example.com > DocumentRoot /usr/local/www/data/blog/ > ServerName blog.lc-words.com > ErrorLog /var/log/httpd-error.log > CustomLog /var/log/httpd-access.log common > </VirtualHost> > > However, when I restart apache, I get: > [Wed Jan 09 16:59:34 2008] [warn] _default_ VirtualHost overlap on port > 80, the first has precedence > > What do I need to change to make it right? > > Many thanks! > > Zbigniew Szalbot > _______________________________________________ Try adding the port to the IP addresses. For example: NameVirtualHost 83.19.156.210:80 <VirtualHost 83.19.156.210:80> And also for the other VirtualHost block too.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8d23ec860801090803v53b19441h37f75b03324a5adf>