在apache的httpd.conf文件制定一个一级站点,和二级域名跳转,为什么所有的域名都指向一级站点去了?
httpd.conf设置如下:
<VirtualHost *.80>
ServerAdmin webmaster@guangdongwh.com
DocumentRoot /usr/local/apache/www/gdwht
ServerName www.guangdongwh.com
</VirtualHost>
<VirtualHost *.80>
ServerAdmin webmaster@guangdongwh.com
DocumentRoot /usr/local/apache/www/gdwht/webchange
ServerName gdwh.guangdongwh.com
ServerAlias *.guangdongwh.com
</VirtualHost>
上面的二级域名为泛域名,想把所有的二级域名都指向webchange目录去,但都指向了根目录下面了。