On Tue, 4 Apr 2000, Jason Terry wrote:
> 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.
you can get the old behavior by backing out the 1.22 change, with this
patch. i'll give this problem some attention for 1.23, which i plan to
release soonish.
--- mod_perl.c 2000/03/04 00:34:21 1.99
+++ mod_perl.c 2000/03/02 20:21:03 1.98
@@ -782,8 +782,10 @@
SAVETMPS;
if((nwvh = ApachePerlRun_name_with_virtualhost())) {
- SAVESPTR(nwvh);
- sv_setiv(nwvh, r->server->is_virtual);
+ if(!r->server->is_virtual) {
+ SAVESPTR(nwvh);
+ sv_setiv(nwvh, 0);
+ }
}
if (gv) {