> 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.

Reply via email to