Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: mod_proxy - Which phase does it run at? |
|
Author |
|
Draco
Joined: 28 Sep 2010 Posts: 3 Location: Montreal, Canada
|
Posted: Fri 03 Dec '10 23:43 Post subject: mod_proxy - Which phase does it run at? |
|
|
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
|
Posted: Mon 06 Dec '10 21:22 Post subject: |
|
|
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 |
|
|
|
|
|
|