http://www.perlmonks.org?node_id=655750


in reply to PerlSetVar and PerlPostReadRequestHandler

That phase is too early. At that point, the request has not been resolved to a directory, so dir_config can't return anything. Make your code a PerlFixupHandler instead.