运维网's Archiver
论坛
›
apache
› Ubuntu apache 禁止目录浏览
lonhy
发表于 2014-1-15 09:45:41
Ubuntu apache 禁止目录浏览
$ sudo vim /etc/apache2/sites-enabled/000-default
将Options后面Indexes前面加上"-"表示禁止目录浏览:
<Directory /var/www/>
Options -Indexes
......
</Directory>
然后重启apache
$sudo service apache2 restart
页:
[1]
查看完整版本:
Ubuntu apache 禁止目录浏览