DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31858>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31858

regular expression matching broken on amd64

           Summary: regular expression matching broken on amd64
           Product: Apache httpd-1.3
           Version: 1.3.31
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Auth/Access
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


On Apache 1.3.31 on amd64 running linux 2.6.8.1, adding:

<FilesMatch "\.(gif|jpg|mp3|css|js|png)$">
     Options All -Indexes
     AllowOverride All
     deny from all
</FilesMatch>

is causing Apache to match files with any extension.

To reproduce, I used a stock 1.3.31 and did:

./configure --prefix=/tmp/apache
make
make install

add the above conf to the end of the default httpd.conf. Then point your 
browser to:

http://localhost/index.html

which will give a 403 forbidden. I also get a forbidden for:

http://localhost/index.html
http://localhost/index.htm
http://localhost/index.ht
http://localhost/index.h
http://localhost/index.

but I get a 404 for:

http://localhost/index

If I remove the FilesMatch, then index.html shows up as expected. Also, oddly,
if I change the filesmatch to:

<FilesMatch "\.(gif|jpg|mp3|css|js)$">

everything also works as expected. 

This only happens on our amd64 systems. x86 works fine.

If you need any more info, please let me know.

Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to