一。修改windows/system32/drivers/etc/hosts文件。
127.0.0.1? ? ? localhost
127.0.0.1? ? ? stick.eff.do
二。新建虛擬主機(jī)的目錄,在extra/httpd-vhosts.conf文件中。
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "d:/wamp/www"
ServerName localhost
ErrorLog "logs/dummy-host2.example.com-error.log"
CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>
三。在httpd.conf開啟虛擬主機(jī)的功能。
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
四。以防出現(xiàn)403錯(cuò)誤,在httpd.conf加。
<Directory />
Options FollowSymLinks
AllowOverride None
Order allow,deny
allow from all
allow from 127.0.0.1
<Directory />
五。以防出現(xiàn)404錯(cuò)誤。
重新配置localhost的主機(jī)。
六。簡(jiǎn)書好膽小,不能復(fù)制大于號(hào)小于號(hào)。
七。為什么訪問(wèn)127.0.0.1出現(xiàn)404錯(cuò)誤。