I am running Apache 1.3.9 + mod_perl-1.21 + mod_ssl-2.4.4 on Sun Ultra 5 box running Solaris 7.
 
I have no problems configuring and running virtual hosts, except when I run scripts which have the same name.
 
I am configuring virtual hosts by assigning them different IP's.
I have my main server and another virtual host  running on this box. These have the same file
structure, but run off different DocumenRoots. Some of the cgi's have the same name, although they perform
slightly different tasks. Whenever I run scripts which share the same name modperl seems to complie the script from the
virtual host, and this is being run when I call it off of the main server.
 
I checked the modperl guide and the archived discussions in the mailing lists. I tried setting the
$Apache::Registry::NameWithVirtualHost =1 with no avail. ModPerl/1.15 onwards was supposed
to do this by default.
My perl-status for this script says Apache::ROOT::cgibin::scriptname...
 
Is there something that I am missing ? Is this a known problem and if so what are the workarounds.
TIA,
 
My perl.conf file is
**************************
PerlModule  Apache::DBI
PerlRequire      conf/startup.pl
PerlModule Apache::StatINC
PerlFreshRestart On
PerlWarn On
 
<Files *.pl>
 SetHandler perl-script
 PerlHandler Apache::Registry
 PerlSendHeader On
 PerlInitHandler Apache::StatINC
 allow from all
 Options ExecCGI
</Files>
 

<Location /perl-status>
    SetHandler perl-script
    PerlHandler Apache::Status
    order deny,allow
    #deny from all
    allow from 172.20.0.101
</Location>
****************************
 
and my startup.pl file reads as following
 
*********************************
#!/usr/local/bin/perl
 
use strict;
 
BEGIN{
    use Apache();
    use lib '/www/lib';
}
 
use Apache::Registry();
use Apache::Status();
use Apache::Constants;
use DBI;
use CGI qw(-compile :all);
use CGI::Carp();
use TeDBUtilities;
use WebUtilities;
use Cybercash;
 
$ENV{ORACLE_HOME} = '/export/home/oracle/product/8.0.4';
 
Apache::DBI->connect_on_init( 'ABCD', 'user', 'passwd', 'Oracle' );
$Apache::DBI::DEBUG = 1;
 
1;
***********************************************
 
 
 
 
Gari Garimella
ContinuedEd.com
 

 

Reply via email to