12. 如何配置apache的虚拟主机(Apache的主配置文件: /usr/local/apache2/conf/httpd.conf) vim httpd.conf #Include conf/extra/httpd-vhosts.conf 把该行最前面的#去掉,然后修改: <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all </Directory> 改为 <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Allow from all </Directory>