location = /config/ {
return 404;
}
location =/config.ini{
return 404;
}
这样只能禁止访问 //www.jb51.net/path/
location = /path/ {
return 404;
}
禁止访问 //www.jb51.net/path/test.php
location ^~ /test
{
deny all;
}
可能test要换成path.
这样就搞定了

2023-03-06
0万阅读

2023-02-28
0万阅读

2023-02-26
0万阅读

2023-02-26
0万阅读

2023-02-23
2万阅读

2023-02-12
14万阅读

2023-02-12
8万阅读

2023-02-10
6万阅读

2023-02-09
5万阅读

2023-01-19
4万阅读

2023-03-06
0万阅读

2023-02-28
0万阅读

2023-02-26
0万阅读

2023-02-26
0万阅读

2023-02-23
2万阅读

2023-02-12
14万阅读

2023-02-12
8万阅读

2023-02-10
6万阅读

2023-02-09
5万阅读

2023-01-19
4万阅读