mirror of
https://github.com/ADD-SP/ngx_waf.git
synced 2026-04-26 22:15:55 +03:00
[GH-ISSUE #100] 使用wordpress规则后waf不拦截 #211
Labels
No labels
MacOS
Nginx
OpenResty
Tengine
bug
documentation
enhancement
needs-investigation
pull-request
question
stale
stale
stale
timeout
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ngx_waf#211
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @opcache on GitHub (Jul 14, 2022).
Original GitHub issue: https://github.com/ADD-SP/ngx_waf/issues/100
版本:ngx_waf:v6.1.9
NGINX版本:nginx/1.22.0
NGINX配置:里面 include /etc/nginx/conf.d/rewrite/wordpress.conf;
wordpress规则:
`
cat wordpress.conf
location / {
index index.html index.php;
if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}
}
`
验证命令:curl https://xxxxxx.com/phpmyadmin/dadmin.html
复现过程:加上wordpress规则,使用命令请求,出现不拦截报404,把wordpress规则去掉,出现拦截报403
@hibobmaster commented on GitHub (Jul 18, 2022):
rewrite指令存在兼容性问题
https://docs.addesp.com/ngx_waf/guide/compatibility.html#module-compatibility
@stale[bot] commented on GitHub (Jul 25, 2022):
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
此 issue 因为最近没有任何活动已经被标记,如果在此之后的一段时间内仍没有任何活动则会被关闭。感谢您对项目的支持。