D:\server\apache\conf\extra httpd-vhosts.conf
末尾加入
<VirtualHost *:80>
ServerName www.tp.com
DocumentRoot "C:/999/tp"
<Directory "C:/999/tp">
Order Allow,Deny
Allow from All
DirectoryIndex index.html index.php
Options Indexes FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>
C:\Windows\System32\drivers\etc hosts
末尾加入
127.0.0.1 www.tp.com