vholsts.conf 加以下代码
<VirtualHost *:80>
DocumentRoot "E:www p5public"
ServerName www.tp5.com
ServerAlias
<Directory "E:www p5">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
http.conf 加以下代码
Include conf/extra/httpd-vhosts.conf 在这句话下面加
<VirtualHost *:80>
DocumentRoot "/home/www/tp5/public"
ServerName tp5.com
</VirtualHost>