NameVirtualHost *:80
#因为apache用ip防问,会跑到第一个上面,可以在第一个虚拟主机上作禁止防问设置
#这样就解决了会跑到第一个虚拟域名上去,当然可以做一个错误页!
ServerName *
Order deny,allow
Deny from all
DocumentRoot "/var/www/1"
ServerName
allow from all
Options +Indexes
ServerAlias 1.com *.1.com
DocumentRoot "/var/www/2"
ServerName
allow from all
Options +Indexes
ServerAlias 2.com
DocumentRoot "/var/www/3"
ServerName
allow from all
Options +Indexes
ServerAlias 3.com
阅读(2348) | 评论(0) | 转发(0) |