2009年2月20日星期五

VirtualHost 设置

首先配置:http.conf

apache 2.2.8 在最下面添加:
Include "D:/WampServer/bin/apache/apache2.2.8/conf/zfarticle.conf"
上面的路径自己可以设置.

下面是配置文件 zfarticle.conf的设置:

<VirtualHost *:80>
<Directory "D:/ZendArticle/public/">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ServerName zf.ostracking.com
ServerAlias zf.ostracking.com
DocumentRoot D:/ZendArticle/public/
ErrorDocument 404 /notfound.php
ErrorLog D:/WampServer/bin/apache/apache2.2.8/logs/zf.site_error.log
CustomLog D:/WampServer/bin/apache/apache2.2.8/logs/zf.site_access.log combined
</VirtualHost>

没有评论: