|
发表于 2009-12-9 10:14:46
|
显示全部楼层
<VirtualHost 192.168.1.1:80>
ServerAdmin webadmin@abc.cn
DocumentRoot "/tmp"
ServerName 192.168.1.1
<Directory "/tmp">
Options None
AllowOverride None
Order allow,deny
Deny from all
</Directory>
RewriteEngine on
RewriteCond ${HTTP_HOST} !^www.abc.cn [NC]
RewriteRule ^.*$ http://www.abc.cn [R,L]
</VirtualHost>
<VirtualHost 192.168.1.1:80>
ServerAdmin webadmin@iseeyoo.cn
DocumentRoot "/data/wwwroot"
ServerName www.abc.cn
</VirtualHost>
这样就行了 |
|