vi /etc/apache2/sites-enabled/000-default
# Alias /doc/ "/usr/share/doc/"
# <Directory "/usr/share/doc/">
# Options Indexes MultiViews FollowSymLinks
# AllowOverride None
# Order deny,allow
# Deny from all
# Allow from 127.0.0.0/255.0.0.0 ::1/128
# </Directory>
重启apache
网站目录权限755
本文转自 freeterman 51CTO博客,原文链接:http://blog.51cto.com/myunix/1542023,如需转载请自行联系原作者