On Wed, 1 Aug 2001, Geoffrey Young wrote: > > > > -----Original Message----- > > From: Stas Bekman [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, July 31, 2001 11:17 PM > > To: Chris Rodgers > > Cc: [EMAIL PROTECTED] > > Subject: Re: Bug?? > > > > > > On Tue, 31 Jul 2001, Chris Rodgers wrote: > > > > > Thanks for that. However, I've already seen this. The > > problem is that I'm > > > requesting pages at: > > > > > > http://my.server.com/perl/blah.pl > > > > > > and also > > > > > > https://my.server.com/perl/blah.pl > > > > > > Now these should be different scripts, and Apache is set up with a > > > completely different document and perl root for the http and https > > > servers. Unfortunately, these still get confused, even with the > > > NameWithVirtualHost code. Hence, I thought of hacking the > > .pm files to > > > include the server port as well as the name in the uniquely > > generated > > > namespace. > > > > > > Any other ideas?? > > > > Hmm, I think you are the first one to hit this issue. Try > > this (untested): > > > > --- ./lib/Apache/Registry.pm.orig Wed Aug 1 11:06:49 2001 > > +++ ./lib/Apache/Registry.pm Wed Aug 1 11:11:04 2001 > > @@ -70,7 +70,8 @@ > > > > if ($Apache::Registry::NameWithVirtualHost && > > $r->server->is_virtual) { > > my $name = $r->get_server_name; > > - $script_name = join "", $name, $script_name if $name; > > + $script_name = join "", (exists $ENV{HTTPS}?'https':''), > > + $name, $script_name if $name; > > } > > of course, that won't work with PerlSetupEnv Off - maybe use > $r->subprocess_env('https') instead :) Are you sure? I think with PerlSetupEnv Off you don't get the usual CGI env vars set, is HTTPS one of these? in any case $ENV{SERVER_PORT} or $r->subprocess_env('https') seem to be fine as long as you get a unique string. > what about just moving to Apache::RegistryNG, since it subclasses PerlRun > which uses the filename and not the URL? true. Chris, does it solve your problem? _____________________________________________________________________ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://apachetoday.com http://eXtropia.com/ http://singlesheaven.com http://perl.apache.org http://perlmonth.com/