您的位置:首页 > 运维架构 > Apache

apache设置目录访问权限

2015-09-13 21:44 621 查看
在<Directory /></Directory>中设定Options none,如下

<Directory />

    Options none

    AllowOverride All

    Order allow,deny

    Allow from all

    Require all granted
</Directory>

设定后通过浏览访问网站目录结构会提示You don't have permission to access /assets/tw/css/ on this server.提高安全性!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: