1,限制目录访问:
sudo vim /etc/apache2/sites-avaiable/default
<Directory /var/www/>
Options indexs FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
把indexs去了就可以限制目录访问。
2,下面三个配置,至少可以提高一点安全系数:
ServerTokens Prod
ServerSignature Off
TraceEnable Off
/conf.d/security,这个文件细细研究一下。
这篇文章不错,值得参考:
http://forum.ubuntu.org.cn/viewtopic.php?f=54&t=144725