Hi,
I want to set the document root for a request to map to the basic auth
username. I tried this in a PerlFixupHandler:
sub handler {
my $r = shift;
# We only want to do this once per request.
return DECLINED unless $r-is_initial_req;
# Get the username.
Fellow mod_perlers,
I followed the instructions in the Server Configuration Customization guide to
create a custom Apache configuration directive like so:
my $foo;
sub foo { $foo = $_[2] }
Apache2::Module::add(__PACKAGE__, [
{ name = 'MyFoo', func = __PACKAGE__ . '::foo' },