Hi,

I'd like to add a location directives dynamically at startup to a VirtualHost using a 
startup script.

I've been trying:

$Apache::ReadConfig::VirtualHost{'127.0.0.1:80'}->{Location}->{'/'} = {
 SetHandler => 'perl-script',
 PerlHandler => 'Apache::Hello',
};

which doesn't work ... while 

$Apache::ReadConfig::Location{'/'} = {
 SetHandler => 'perl-script',
 PerlHandler => 'Apache::Hello',
};

works but clobbers other information already stored in other VirtualHosts. I 
specifically need to patch into >one< virtual host out of possibly many. 

The configuration of the various machines is out of my control which is why I was 
going with the Apache::ReadConfig approach.

Thanks
-Chris

Reply via email to