httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 41114] ACL HTTP method is rejected by mod_proxy_ajp
Date Wed, 07 May 2008 19:16:09 GMT

Eirikur Sveinn Hrafnsson <> changed:

           What    |Removed                     |Added
         OS/Version|other                       |All

--- Comment #2 from Eirikur Sveinn Hrafnsson <>  2008-05-07 12:16:08 PST
We found out why SEARCH method does not work and know how to fix it for now.

The problem is that M_INVALID that is used to limit which methods are allowed
is defined in httpd.h and has the value 26, SEARCH HTTP METHOD gives the value
28 into the method sc_for_req_method_by_id(..) so it won't work. Comparing
method_id to positions in an array is at best dubious coding. mod_jk uses some
other way to do this and mod_dav obviously since they do work.

The fix:
Edit ajp_header.c under modules/proxy

line 161 in Apache 2.2.8
     0                       /* M_INVALID */

remove that last 0 /* M_INVALID */ line
and add instead:
    SC_M_SEARCH /* needs to be the 28 in the array...*/

and in the method:
static int sc_for_req_method_by_id(request_rec *r)

 if (method_id < 0 || method_id > M_INVALID) {

    if (method_id < 0 || method_id > 28) {

Where 28 is the size of the methods array we just added to in the beginning.

Then compile apache again using for example:
> ./configure --prefix=/usr/local/apache2 --enable-mods-shared="all proxy proxy-ajp proxy-balancer
filter deflate expires ssl rewrite mime-magic mem-cache info disk-cache dav dav-fs dav-lock"
> make 
> make install

Eirikur S. Hrafnsson and Pall Helgason
Idega Software

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message