apache配置端口目录
</VirtualHost>
<VirtualHost *:8081>
? ? ServerAdmin webmaster@dummy-host.smiky
? ? DocumentRoot "D:/work/branch/www"
? ? ServerName dummy-host.smiky
? ? ServerAlias www.dummy-host.smiky
? ? ErrorLog "logs/dummy-host.smiky.log"
? ? CustomLog "logs/dummy-host.smiky-access.log" common
</VirtualHost>
配好后,再回到httpd.conf中为这两个目录添加权限
<Directory "D:/work/trunk/www">
? ? Options Indexes FollowSymLinks
? ? AllowOverride None
? ? Order allow,deny
? ? Allow from all
</Directory>
<Directory "D:/work/branch/www">
? ? Options Indexes FollowSymLinks
? ? AllowOverride None
? ? Order allow,deny
? ? Allow from all
</Directory>
?