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
>