第一步:找到E:\Developmentool\wampserver\bin\apache\apache2.4.35\conf\extra 下的 httpd-vhosts.conf 文件;
<VirtualHost *:80>
ServerAdmin zxhtong
DocumentRoot "${INSTALL_DIR}/www/zxhtong/web"
ServerName lks.zxhtongdemo.com
ErrorLog "logs/lks.zxhtong.com-error.log"
CustomLog "logs/lks.zxhtong.com-access.log" common
DirectoryIndex front.php
RewriteEngine On
Include "${INSTALL_DIR}/www/zxhtong/web/rewrite.txt"
</VirtualHost>
第二步:找到 C:\Windows\System32\drivers\etc 下的 hosts
127.0.0.1 www.phpdemo.com
添加静态映射