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