httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reindl Harald <h.rei...@thelounge.net>
Subject RedirectMatch: unexpected behavior within <Limit>
Date Wed, 17 May 2017 13:12:39 GMT
<Directory "/">
  <Limit POST>
   RedirectMatch 404 "(?i)\/[\.]{0,1}(cvs|svn)\/"
  </limit>
</Directory>

that above don't work and don't warn as it is normally the case where a 
"apachectl -t" clearly says "syntax error, xxx not allowed here"

don't work means RedirectMatch also applies to GET-requests which makes 
it really hard to restrict extensions like below only for normal 
webacess which is chained into "AllowMethods GET HEAD POST" but at the 
same time allow time for mod_dav_svn methods

well, and there is also no option to remove one or all global set 
"RedirectMatch" for a specific directory

RedirectMatch 404 
"(?i)\.(asax|ascx|ashx|asmx|asp|aspx|axd|back|backup|bak|bat|cfm|class|class\.php|cmd|conf|config|csproj|dat|data|db[0-9]{0,1}|dll|ds_store|exe|fbcindex|idc|inc|ini|jhtml|jsp|jspa|key|log|mdb|mdf|mscgi|nasl|nsf|ocx|old|pl|py|rb|sample|sav|save|sh|shtm|sql|sqlite|vbproj|vbs|webinfo)$"

Mime
View raw message