httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 49131] New: Very long URLs cause 404 or 403 errors with SetAction, RewriteRule, RedirectMatch...
Date Thu, 15 Apr 2010 21:50:38 GMT

           Summary: Very long URLs cause 404 or 403 errors with SetAction,
                    RewriteRule, RedirectMatch...
           Product: Apache httpd-2
           Version: 2.2.11
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core

We've got a virtual host set up where all requests are redirected to a cgi
script using SetAction

<Virtualhost *:80>
        ServerName mytest
        DocumentRoot /var/www/mytest

        Options +ExecCGI
        Action all /index.cgi virtual
        <Location /index.cgi>
                SetHandler cgi-script
        SetHandler all

... where index.cgi is just a small example that prints the environment

echo Content-Type: text/plain

This works ok for small URLs such as


However, for very long URLs, weird stuff happens. Often we get a 404, and
sometimes a 403.


It really looks like some kind of buffer overrun...

Same thing with RewriteRule:

<Virtualhost *:80>
        ServerName mytest
        DocumentRoot /var/www/mytest

        RewriteEngine on
        RewriteRule /.* /index.cgi [L]


<Virtualhost *:80>
        ServerName mytest
        DocumentRoot /var/www/mytest

        RedirectMatch /............* /index.cgi

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