On Thu, 30 Dec 1999, Jason Terry wrote:

> Is there a way to RegistryLoader a single instance of a script
> /cgi-bin/admin.cgi
> and have this instance work across ALL virtual hosts.
> 
> simply loading
> $r->handler("/cgi-bin/admin.cgi",
> "/home/jter/public_html/cgi-bin/admin.cgi");
> doesn't seem to work.  It loads it, but if I check my processes after
> running the script, I see multiple instances of it in the child processes,
> one for each host.

Yes, in your PerlRequire startup file set
$Apache::Registry::NameWithVirtualHost to 0. Don't forget to see the guide
http://perl.apache.org/guide/config.html#A_Script_from_one_virtual_host_c
for possible problems when setting this value to 0.

HTH,
Radu Greab

Reply via email to