nginx配置敏感文件限制访问

敏感文件限制访问:
location ~ /\.ht {
deny all;
}
location ~* \.(ini|conf|txt|log|gitignore|sql|bak|inc|old|sh)$ {
deny all;
}
location ~ .*\.(svn|git) {
deny all;
}

敏感文件限制访问:
location ~ /\.ht {
deny all;
}
location ~* \.(ini|conf|txt|log|gitignore|sql|bak|inc|old|sh)$ {
deny all;
}
location ~ .*\.(svn|git) {
deny all;
}