apache 增加新网站

windows下集成wamp环境,需要设置不同域名进行开发。方法:

<VirtualHost *:80>
DocumentRoot "项目路径"
ServerName 域名
ErrorLog "logs/phome.com-error.log"
CustomLog "日志路径" common
</VirtualHost>
<Directory "项目路径">
Options Indexes FollowSymLinks
AllowOverride all
Order Allow,Deny
Allow from all
</Directory>

posted @ 2015-08-19 11:30  ddliang  阅读(538)  评论(0编辑  收藏  举报