httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: best way to return the content of a file
Date Sat, 18 Aug 2012 16:32:48 GMT
> i'm enabling my module with a Location directive:
>
>     <Location /data>
>     SetHandler kcache
>     </Location>
>
> and i want to control the execution of the module with an initial check:
>
> if (!r->handler || strcmp(r->handler, "kcache")) return (DECLINED);
>
> but r->handler is null if the hook is called in ap_hook_translate_name
> state, so how can i check this condition?

You can't check that condition early.  You should implement a
directive to enable your module in these early phases.

Mime
View raw message