当我试图访问子目录时,日志中出现了以下错误:
ModSecurity: Access denied with code 403 (phase 2). Matched phrase ".profile" at ARGS:scope. [file "/etc/apache2/conf.d/modsec_vendor_configs/comodo_apache/09_Global_Other.conf"] [line "57"] [id "210580"] [rev "1"]
请求在URI中包含.profile单词,但我在Google登录范围中使用它。
这有可能吗,.htaccess会禁用它吗?我已经试过用了:
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
但不起作用。
我试着把它放在根.htaccess文件和次定向.htaccess文件中。
更新:
浏览器中的错误是:
Forbidden
You don't have permission to access /SUBDIR/index.php on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
发布于 2018-09-17 19:37:48
试试这个:
<IfModule mod_security2.c>
SecRuleUpdateTargetById 210580 !ARGS:'scope'
</IfModule>
https://stackoverflow.com/questions/52373555
复制相似问题