httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 45187] Long File name requests gives FORBIDDEN response
Date Thu, 08 May 2014 09:23:09 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=45187

Anton Voloshin <ashutosh108@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ashutosh108@gmail.com

--- Comment #21 from Anton Voloshin <ashutosh108@gmail.com> ---
(In reply to Hiep Pham from comment #20)
> Could you give me some suggestions?

I've ended up moving those mod_rewrite rules from .htaccess to apache config
file, then suddenly this bug disappears. This is the only workaround I'm aware
of. In my particular case those rules are (from
/etc/apache/sites-enabled/sitename.com):
    <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
        RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
        #nosubreq is needed to pass on internal subrequests: dir/ =>
dir/index.html
        RewriteRule ^/20[0-9][0-9]/[0-9][0-9]/([0-9]+) /news/index.php?id=$1
[nosubreq,QSA]
    </IfModule>

Those rules did not work in .htaccess with very long URIs (giving the infamous
"403 forbidden") but they work just fine in the apache config file.

However, this is a real bug and it should be fixed.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message