Hi all, I have a setup with multiple different VHOSTs and am trying to get some "PerlSetEnv"-statement from each of those. The following simply returns an empty array reference:
> my $confTree = Apache2::Directive::conftree(); > my @loadingIds = $confTree->lookup('PerlSetEnv'); The following statement OTOH does provide an array ref containing hash refs: > my @vhosts = $confTree->lookup('VirtualHost'); The following provides only ONE result, that for the config statemente of the server itself, outside the VHOSTs: > my @loadingIds = $confTree->lookup('ServerName'); From the docs I had the feeling that "lookup" is searching the whole configuration tree in a way like XPath is doing for XML-documents, only simply. So if I search for "ServerName", I get that of the server itself in addition to that of each VHOST. If I search for "Alias" I get all, all "PerlSetEnv" etc. Instead it seems that "lookup" is only searching the top level of the server itself or something? Additionally it doesn't return any objects, but e.g. hash refs instead. So one can't search for all VHOSTs and then in those returned values using "lookup" again for "PerlSetEnv". Instead one needs to search the hash ref manually. Is that intended or am I understanding things wrongly? Thanks! Mit freundlichen Grüßen, Thorsten Schöning -- Thorsten Schöning E-Mail: thorsten.schoen...@am-soft.de AM-SoFT IT-Systeme http://www.AM-SoFT.de/ Telefon...........05151- 9468- 55 Fax...............05151- 9468- 88 Mobil..............0178-8 9468- 04 AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow