logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: mod_proxy - Which phase does it run at?
Author
Draco



Joined: 28 Sep 2010
Posts: 3
Location: Montreal, Canada

PostPosted: Fri 03 Dec '10 23:43    Post subject: mod_proxy - Which phase does it run at? Reply with quote

Hello,

I am currently developing a module in mod_perl which is a handler that executes at the HeaderParser phase of request processing.

It seems like an already present mod_proxy on my server is conflicting with it by handling my requests before they even get to my module.

Is there a way to make something always execute before mod_proxy?

The module is currently set up in httpd.conf as follows:

Code:
PerlModule Package::Name
<Directory />
   SetHandler modperl
   PerlHeaderParserHandler Package::Name
   ...
</Directory>


The idea of putting it in "Directory /" is to have it intercept every request, but I fear other Directory/Locations with more specific paths may be overriding this.


Thank you for your time!
Back to top
Draco



Joined: 28 Sep 2010
Posts: 3
Location: Montreal, Canada

PostPosted: Mon 06 Dec '10 21:22    Post subject: Reply with quote

I have found a solution for this. To ensure a handler is run for every proxied request, it can be added to the Proxy directive much like in a Document/Location one. For example:

<Proxy *>
SetHandler modperl
PerlHeaderParserHandler Package::Module
...
</Proxy>
Back to top


Reply to topic   Topic: mod_proxy - Which phase does it run at? View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules