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