yup - I see the same thing if I use a vhost setup...

Doug - looks like in trying to fix that pest some undesired behavior has
been introduced (ack!).  I imagine that sharing scripts is probably more
important that a fix that still doesn't work?

 :)

--Geoff

> -----Original Message-----
> From: Jason Terry [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 04, 2000 12:55 PM
> To: Geoffrey Young; [EMAIL PROTECTED]
> Subject: Re: modperl 1.22 and NameWithVirtualHost not working properly
> 
> 
> Yes, I am preloading it.
> Below is my entire startup.pl none of the script load globally
> and please note that it does work in 1.21 but not in 1.22
> 
> 
> 
> #load perl modules of your choice here
> #this code is interpreted *once* when the server starts
> use Apache::Status ();
> use Apache::Registry ();
> use Devel::Symdump ();
> use Apache::RegistryLoader ();
> use CGI ();
> use LWP::UserAgent ();
> #use Apache::DBI ();
> #use DBI ();
> 
> print "\n";
> #you may define Perl*Handler subroutines here too 
> print "Making Apache::Registry scripts global . . .";
> $Apache::Registry::NameWithVirtualHost = 0;
> print "Done.\nLoading admin.cgi . . . . . . . . . . . . . ";
> my $r = Apache::RegistryLoader->new;
> $r->handler("/cgi-bin/admin.cgi", 
> "/home/vshopper/public_html/cgi-bin/admin.cgi");
> print "Done.\nLoading cart.cgi . . . . . . . . . . . . . .";
> my $s = Apache::RegistryLoader->new;
> $s->handler("/cgi-bin/cart.cgi" , 
> "/home/vshopper/public_html/cgi-bin/cart.cgi");
> #print "Done.\nLoading cart_jason.cgi . . . . . . . . . . . . . .";
> #my $t = Apache::RegistryLoader->new;
> #$t->handler("/cgi-bin/cart_jason.cgi" , 
> "/home/vshopper/public_html/cgi-bin/cart_jason.cgi");
> print "Done.\n";
> 
> 1; #return true value
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ----- Original Message ----- 
> From: "Geoffrey Young" <[EMAIL PROTECTED]>
> To: "'Jason Terry'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Tuesday, April 04, 2000 10:47 AM
> Subject: RE: modperl 1.22 and NameWithVirtualHost not working properly
> 
> 
> > whoops - sorry for misunderstanding - I'll look into it and 
> see if I see the
> > same thing.
> > 
> > are you preloading Apache::Registry (either using PerlModule or in a
> > startup.pl?)
> > 
> > > -----Original Message-----
> > > From: Jason Terry [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, April 04, 2000 12:42 PM
> > > To: Geoffrey Young; [EMAIL PROTECTED]
> > > Subject: Re: modperl 1.22 and NameWithVirtualHost not 
> working properly
> > > 
> > > 
> > > But, I don't want the virtual host information included.....  
> > > ALL of my scripts on this web server are GLOBAL and in 
> order to save
> > > memory I only want to have one copy loaded and shared for 
> > > multiple virtual hosts.
> > > 
> > > It used to be that if you set
> > > $Apache::Registry::NameWithVirtualHost = 0;
> > > 
> > > Then mod_perl would ignore the virtual host an use the same 
> > > script for all users.  However with 1.22 it doesn't seem 
> to be doing
> > > that anymore.
> > > 
> > > ----- Original Message -----
> > > From: "Geoffrey Young" <[EMAIL PROTECTED]>
> > > To: "'Jason Terry'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > > Sent: Tuesday, April 04, 2000 10:31 AM
> > > Subject: RE: modperl 1.22 and NameWithVirtualHost not 
> working properly
> > > 
> > > 
> > > > well, there has been some NameWithVirtualHost work going on 
> > > to solve a
> > > > related problem - perhaps the behavior you used to see is 
> > > changing due to
> > > > that?
> > > >
> > > > at any rate, check out the new RegistryLoader docs - you 
> > > can now compile
> > > > scripts with the vhost stuff in them:
> > > >
> > > >  $r->handler($uri, $filename, $virtual_hostname);
> > > >
> > > > HTH
> > > >
> > > > --Geoff
> > > >
> > > > > -----Original Message-----
> > > > > From: Jason Terry [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Tuesday, April 04, 2000 11:45 AM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: modperl 1.22 and NameWithVirtualHost not 
> working properly
> > > > >
> > > > >
> > > > > #you may define Perl*Handler subroutines here too
> > > > > print "Making Apache::Registry scripts global . . .";
> > > > > $Apache::Registry::NameWithVirtualHost = 0;
> > > > > print "Done.\nLoading admin.cgi . . . . . . . . . . . . . ";
> > > > > my $r = Apache::RegistryLoader->new;
> > > > > $r->handler("/cgi-bin/admin.cgi",
> > > > > "/home/vshopper/public_html/cgi-bin/admin.cgi");
> > > > > print "Done.\n";
> > > > >
> > > > > The above is a portion of my startup.pl when I run it from
> > > > >     Apache/1.3.11 (Unix)
> > > > >     mod_perl/1.21
> > > > >     PHP/3.0.14
> > > > >     mod_ssl/2.5.0
> > > > >     OpenSSL/0.9.4
> > > > > it works like it should
> > > > >
> > > > > However, when I run it from
> > > > >     Apache/1.3.12 (Unix)
> > > > >     mod_perl/1.22
> > > > >     PHP/3.0.15
> > > > >     mod_ssl/2.6.2
> > > > >     OpenSSL/0.9.5a-beta1
> > > > > It seems to partially ignore the NameWithVirtualHost.  It
> > > > > loads the script without the virtual hosts properly.  
> > > However, when
> > > > > someone actually tries to run admin.cgi from a virtual hosts
> > > > > it re-compiles the script into the child again under it's 
> > > the virtual
> > > > > server.
> > > > >
> > > > > Does anybody know why it worked in 1.21 but doesn't 
> work in 1.22?
> > > > >
> > > > > Thanks in advance
> > > > >     -Jason
> > > > >
> > >
> 

Reply via email to