監聽92端口,localhost 默認指向 0.0.0.0也是127.0.0.1
重啟,打開localhost:92 完成
上面是端口號
2.本地域名映射
我在本地寫一個域名,加載跳的是我本地配置的域名映射的目錄
1.在extra/httpd-vhosts.conf里面寫一條
<VirtualHost localhost:80> ServerName ansdksk.com DocumentRoot F:\目錄地址 <Directory "F:\E\目錄地址"> Options +Indexes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory> </VirtualHost>
2.C:\Windows\System32\drivers\etc\host
# localhost name resolution is handled within DNS itself. # 127.0.0.1 localhost # ::1 localhost 127.0.0.1 localhost 127.0.0.1 ansdksk.com