1、http.conf
Listen 80
Listen 8080
Listen 8000
ServerName localhost:80
ServerName localhost:8080
ServerName localhost:8000
2.http-vhost.conf
<VirtualHost *:80>
##ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "D:/work/trunk"
ServerName localhost
##ServerAlias www.dummy-host.example.com
##ErrorLog "logs/dummy-host.example.com-error.log"
##CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>
<VirtualHost *:8000>
##ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "D:/thinkphp"
ServerName localhost
##ErrorLog "logs/dummy-host2.example.com-error.log"
##CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>
<VirtualHost *:8080>
##ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "D:/think/trunk"
ServerName localhost
##ErrorLog "logs/dummy-host2.example.com-error.log"
##CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>
<Directory "D:/think">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
Require all granted
</Directory>
<Directory "D:/thinkphp">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
Require all granted
</Directory>