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

Re: [cobalt-users] Using include.conf file with httpd.conf changed the default site



At 02:07 PM 18/04/2002 +0100, you wrote:

----- Original Message -----
From: "Chris Bell" <chris@xxxxxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Wednesday, April 17, 2002 9:47 AM
Subject: [cobalt-users] Using include.conf file with httpd.conf changed the
default site


|
| I wanted to configure some virtual web servers pointing to a subdirectory
| of an existing site.
|
| cb
|

This is how i do mine and seems to work
pico -w /etc/httpd/conf/httpd.conf
#Add the following line at the very end of the file, If you put it elsewhere
it seems to mess up
Include /etc/httpd/conf/include.conf


Down the bottom seems to be the way to go.

The Raq4 seems to add new <VirtualHost> entries immediately under the first one, which is the default site for the machine and the one that's served up if you enter your IP address into a browser. So if you put the Include directive before this, your default site gets messed up (because the server comes across another site with that IP address before it gets to the default site), and if you put it after it will end up lost in the middle of all of your <VirtualHost> entries.

Down the bottom seems fine. I put my Include line there, then I added sites, deleted sites, and the Raq seems to leave it alone. I'll let you know if I ever manage to accidentally delete it : )

Chris Bell
BlueSkyHost.com
--