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