域名 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
请问我下面虚拟主机哪赔错了
<VirtualHost *:80>
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
<Directory "/var/www/abc">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
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
<Directory "/var/www/wx">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
--
FROM 104.172.43.*