randolf at modperl
May 17, 2011, 10:21 AM
Post #4 of 4
> Il 17/05/2011 18.37, André Warnier ha scritto:
Re: write handler for apache http request
[In reply to]
> > So what is wrong with the example section of
> > http://perl.apache.org/docs/2.0/user/handlers/server.html#C_PerlPostConfigHandler_
> Sorry, I did explain not very well.
> I tell you my problem. I want to write a simple perl handler that must
> be executed only in the post-read-request phase of http request cycle.
> So the module must be a PerlPostConfigHandler.
> I never worked with this and I don't know how to start do this.
> How can I load this module on apache?
> How can I write this module if, for example, I want to "write a file"
> when this handler is invoked?
You probably want this handler:
There's a code example included on that web page, and then in
httpd.conf you'll need to specify your source code file with the
PerlPostReadRequestHandler configuration directive.
Randolf Richardson - randolf [at] inter-corporate
Inter-Corporate Computer & Network Services, Inc.
Vancouver, British Columbia, Canada