On Mon, 2006-05-08 at 02:03 +0530, Dinesh Joshi wrote:

> 
> Since I am using Apache 1.3.31 I dont have a vhosts.conf. Heres the 
> relevant part of my httpd.conf:
In httpd.conf you can "modularize" the various configs via an Include statement.
That's what I did for my virtual host config.

Thanks for sharing your vhost section.
> ---------------------------------------------------------------------
>     ServerAlias 192.168.0.1 www.mydomain.org
> </VirtualHost>

"Server Alias ..." someone else also suggested using it although the
Apache docs don't mention it.


> ---------------------------------------------------------------------
> 
> It seems that apache defaults to the first vhost if it doesnt find a 
> matching HOST in the http header.
Yup,

> I really cant say because the above setup works for me in Debian Sarge 
> with Apache 1.3.31. BTW you can check your vhost config by running 
> apache -S

Will try it.  There are no errors/warnings in the log files when I start
httpd.

Thanks.

-- Arun Khan (knura at yahoo dot com) THE GOLDEN RULE OF ARTS AND
SCIENCES The one who has the gold makes the rules.


-- 
http://mm.glug-bom.org/mailman/listinfo/linuxers

Reply via email to