Thankyou for this; on closer inspection I can see that PerlSetVar can be used locally to a <Directory>, <Files>, or even a <VirtualHost> directive. Perfect, it gives me the localisation I need! I can retrieve the value using $r->dir_config('somekey').