You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Chirouze Olivier <ol...@volvo.com> on 2007/02/15 11:22:27 UTC
[users@httpd] Modules order
Hi,
I try to run Apache.exe to go to the internet but I get an error with winzip - what is the URL please?
Ok, just kidding :-)
I'd like to know if there is a way to change the order in which modules are called by Apache (either by conf or by source code change...)
Here's my pb: I have a module that should limit number of connections by virtualhost, but I realized it was called once the proxy request is finished, which makes it useless.
I'm running Apache as a reverse proxy
What happens is:
1) Request arrives at virtualhost "vhost1"
2) URL is rewritten to www.intranethost.com/url (rules includes [P] flag)
3) Request is directly passed to proxy mode
4) Request takes as long as the "intranethost" needs to process it
5) Request is sent to the limit module (mod_cband)
I have been able to verify this in log files by setting log level to the maximum and adding traces to mod_cband.
So, there is no point in limiting requests if the limit is verified once the response is ready to be sent!!!
===> I need to move 5) between 1) and 2)...
I've tried moving LoadModule directives (mod_cband first), putting my mod_cband directives at the begining of my virtualhost scope... nothing changes. I can't manage to have this module called before mod_rewrite and mod_proxy.
Should this be specified in the module source code itself?
Thanks!
Olivier
Olivier CHIROUZE
I&0 Infrastructure
Volvo Information Technology
RE: [users@httpd] Modules order
Posted by Chirouze Olivier <ol...@volvo.com>.
Thanks a lot Joshua, that proved useful.
I had to hack the code to make it work, but... It does!!!
Message with the full story following.
Thanks.
Olivier
Olivier CHIROUZE
I&0 Infrastructure
Volvo Information Technology
> -----Original Message-----
> From: jslive@gmail.com [mailto:jslive@gmail.com] On Behalf Of
> Joshua Slive
> Sent: 15 February 2007 16:07
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Modules order
>
> On 2/15/07, Chirouze Olivier <ol...@volvo.com> wrote:
>
> > I'd like to know if there is a way to change the order in
> which modules are
> > called by Apache (either by conf or by source code change...)
>
> I think the best introduction on this subject is probably
> http://www.apachetutor.org/dev/request
> Nic also has a book on apache module development that I'm sure covers
> this in detail.
>
> Joshua.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Modules order
Posted by Joshua Slive <jo...@slive.ca>.
On 2/15/07, Chirouze Olivier <ol...@volvo.com> wrote:
> I'd like to know if there is a way to change the order in which modules are
> called by Apache (either by conf or by source code changeā¦)
I think the best introduction on this subject is probably
http://www.apachetutor.org/dev/request
Nic also has a book on apache module development that I'm sure covers
this in detail.
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org