[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apache and virtual hosts



On Tue, Oct 16, 2001 at 04:55:39PM +0200, Rogier van Gemert wrote:
> Just add something like:
> 
> <VirtualHost my.ip.number>
> DocumentRoot /location of the webpage
> Servername subdomain.mydomain.com
> </Virtualhost>
> 
> and all worked well... NOT with Debian.

Before the first VirtualHost block, you need to add:

NameVirtualHost my.ip.number

so that apache knows it's supposed to be doing multiple vhosts on
that IP address.

-- 
When we reduce our own liberties to stop terrorism, the terrorists
have already won. - reverius

Innocence is no protection when governments go bad. - Mr. Slippery



Reply to: