On Wed, 11 Oct 2000, Ben-Nes Michael wrote:
> Hi
>
> Any one know how to tell the apache to process specific file before each
> file is processed ?
What do you mean by "process"? If you're writing a C apache module,
and you want to do something before every file serve, (or any other
serve),
just regiseter as handler for Location /, do your thing and return
DECLINED. (Same in mod_perl and Perl module, or mod_snake and a Python
moduel)
If you mean "Append to each file process", it's not possible in any
straightforward way, because apache doesn't support filtering. Perhaps
mod_proxy and virtual hosts can do that.
I think you mean the second one.
Ifit's enough to deal with static files, just register to everything
at the beginning (so others can override you), and handle the request
yourself, using the Apache API. This can be done in C, Perl or Python.
I think it is also possible to do it in Tcl, but I'm not sure.
--
Moshe Zadka <[EMAIL PROTECTED]>
There is no IGLU cabal.
http://advogato.org/person/moshez
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]