I am using apache 1.3 with a default install on windows XP. Pretty much the only mod to the apache config I did was set the php parameters (using as a module, not cgi), and the vhosts. Have each vhost point to their own document root. Below is an example of how I set the vhosts. I set vhost1 in the hosts file. That's about it. <VirtualHost emp2> ServerAdmin webmaster@xxxxxxxxxxxxxxxxxxxxxx DocumentRoot c:/home/http/vhost1 ServerName vhost1 <Directory "c:/home/http/vhost1/"> Options All AllowOverride none Order allow,deny Allow from all </Directory> ErrorLog logs/vhost12-error_log CustomLog logs/vhost1-access_log common </VirtualHost> As I said, I have seen this happen before at a company I used to work for as well, but we were using mod_perl. They had set up a single server with multiple vhosts for developers. It ended up in chaos because a perl module in one vhost would end up being executed in the other vhosts. It's not a problem except for files that are named the same. -----Original Message----- From: jslive@xxxxxxxxx [mailto:jslive@xxxxxxxxx] On Behalf Of Joshua Slive Sent: Wednesday, November 29, 2006 6:49 PM To: users@xxxxxxxxxxxxxxxx Subject: Re: 2 vhosts with same file names - Apache only uses one file On 11/29/06, Earl, Robert(IT) <Earl.R@xxxxxxxxxxxxx> wrote: > > > > > I have seen the following problem with apache using both mod_perl and php. > > I would really like to know how to resolve this. If anyone can help, that > would be great. > > > > I have 2 vhosts with different document roots. There are files in each with > the same name, but different content. > > It seems apache will load a file from one vhost, and if the file has a > counterpart (file with the same name) in the other vhost, and that file is > requested from the other vhost, apache will use the file that is loaded - > doesn't matter that it is from the document directory of the other vhost or > not. > > > > Ask away if I haven't provided enough information. > > I've seen this issue at other places, so I know I'm not the only one with > this problem. I went back about a year looking for a similar posting, but > didn't see one. Sorry if it is posted already. Are you using mod_cache? You don't mention anything about your version of apache httpd, nor your platform. This certainly does not happen on a default install. Joshua. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx