> -----Original Message-----
> From: darren chamberlain [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 19, 2001 7:48 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Initialization code that recognized <Location> setting
>
[snip]
>
> So, DIR_CREATE and DIR_MERGE can be used to run code when a
> specific Location or Directory directive is hit, and nothing
> states that the code that runs has to only modify the data
> structure that gets passed in (although that was the original
> intent). You should be able to use this to perform
> Location-specific customizations to your module.
except that DIR_MERGE gets called every time a directive is encountered at
run-time, and IIRC DIR_CREATE is called at least twice per directive becuase
of the double-loading thing...
I just got through overloading <Location>, which may be an option:
sub Location ($$$;*) {
# do something once and store it away
return DECLINE_CMD; # let Apache handle <Location> after all
}
interesing approach to the problem, though...
--Geoff