1、# Virtual hosts
Include conf/extra/httpd-vhosts.conf 現在的配置在單獨的檔案中 2、具體配置,照着example改吧 NameVirtualHost *:80 <VirtualHost *:80>
ServerName localhost
DocumentRoot "E:/apache2/htdocs"
<Directory "E:/apache2/htdocs">
AllowOverride All
Options All </Directory>
</VirtualHost> 3、修改C:/WINDOWS/system32/drivers/etc下hosts檔案 增加127.0.0.1 localhost這樣的ip hostname内容 内容的通路還和Directory有關,要不會無法通路 重新開機看看!!