域名 abc.com --> /var/www/abc
要使用二级域名 wx.abc.com ---> /var/www/wx
已在阿里云服务器添加二级域名解析
输入 abc.com 或 wx.abc.com 都访问到了/var/www/abc 目录下
想输入wx.abc.com 访问 /var/www/wx 目录
请问我下面虚拟主机哪配错了
DocumentRoot "/var/www/abc"
ServerName abc.com
ServerAlias *.abc.com
DirectoryIndex index.html news.html index.htm index.php
ErrorLog "/etc/httpd/logs/abc-php-error_log"
CustomLog "/etc/httpd/logs/abc-php-access_log" common
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
DocumentRoot "/var/www/wx"
ServerName wx.abc.com
ServerAlias *.wx.abc.com
DirectoryIndex index.html news.html index.htm index.php
ErrorLog "/etc/httpd/logs/wx-php-error_log"
CustomLog "/etc/httpd/logs/wx-php-access_log" common
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>