【发布时间】:2017-04-11 12:44:43
【问题描述】:
如何阻止通过浏览器查看某些类型的文件来配置Nginx?
<FilesMatch "\.(htaccess|htpasswd|ini|phps|fla|psd|log|sh)$">
Order Allow,Deny
Deny from all
</FilesMatch>
【问题讨论】:
标签: apache nginx code-conversion
如何阻止通过浏览器查看某些类型的文件来配置Nginx?
<FilesMatch "\.(htaccess|htpasswd|ini|phps|fla|psd|log|sh)$">
Order Allow,Deny
Deny from all
</FilesMatch>
【问题讨论】:
标签: apache nginx code-conversion
这是 NginX 版本:
location ~ \.(htaccess|htpasswd|ini|phps|fla|psd|log|sh)$ {
deny all;
}
【讨论】: