I tried what you suggested, but I still have the same problem.

The hend of the httpd.conf file contains:

NameVirtualHost *:80

PerlRequire "/etc/httpd/conf/startup.pl"
Include "/etc/httpd/conf/siteA"
Include "/etc/httpd/conf/siteB"
Include "/etc/httpd/conf/siteC"

and /etc/httpd/conf/startup.pl contains

#! /usr/bin/perl

$ModPerl::RegistryCooker::NameWithVirtualHost = 1;

And I restarted the httpd daemon.

Peter


Stas Bekman wrote:
peter wrote:

I am using Apache and mod_perl that comes out of the box with Red Hat 9.

httpd -v
Server version: Apache/2.0.40
Server built:   Feb 25 2003 05:01:56

I have set up three separate Virtual Hosts which I use for my site. One of the hosts is for my personal testing, one is for QA and one is the live system. I have one cgi file that I run for each virtual host, each from a different directory, but with the same name.

Sometimes when I change the cgi program for one of the virtual hosts the change appears in one of the other virtual hosts. I suspect that there is a problem with the caching mechanism. I know that I haven't written the file to the wrong directory because if I restart http, the problem disappears.

I know that this is not the most up-to-date version of Apache, but I have looked through the release notes and didn't see anything relevant. Has anyone else had a problem like this, and if so, what was the solution.


http://perl.apache.org/docs/1.0/guide/config.html#A_Script_From_One_Virtual_Host_Calls_a_Script_with_the_Same_Path_From_the_Other_Virtual_Host


It's almost the same in ModPerl::Registry in mod_perl 2.0, though since I just replaced Apache::Registry with ModPerl::RegistryCooker, it's:


$ModPerl::RegistryCooker::NameWithVirtualHost = 1;

I think I need to change that to have this variable specific to each class. So there will be: $ModPerl::Registry::NameWithVirtualHost, $ModPerl::PerlRun::NameWithVirtualHost, etc.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com





-- Peter Gordon Tel: (972) 8 9432430 Ext: 129 Cell phone: 054 438029 Fax: (972) 8 9432429 Valor Ltd, PO Box 152, Yavne 70600, Israel Email: [EMAIL PROTECTED]



--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html



Reply via email to