apache httpd serveralias只有一个域不工作

apache httpd serveralias只有一个域不工作,apache,Apache,我有一个10个域的服务器。所有域都可以使用ServerAlias正常工作,因此如果用户类型为www.domain.com或只是domain.com,则工作正常。但是,只有一个域不起作用。如果我输入www.xxxxx.com,它会工作。如果我只键入xxxxx.com,它将转到默认页面。由于其他域没有此问题,我如何修复它?或者如何在httpd中检查ServerAlias结果 <VirtualHost 202.64.x.x:80> ServerName www.xxxxx.com:80 S

我有一个10个域的服务器。所有域都可以使用ServerAlias正常工作,因此如果用户类型为www.domain.com或只是domain.com,则工作正常。但是,只有一个域不起作用。如果我输入www.xxxxx.com,它会工作。如果我只键入xxxxx.com,它将转到默认页面。由于其他域没有此问题,我如何修复它?或者如何在httpd中检查ServerAlias结果

<VirtualHost 202.64.x.x:80>
ServerName www.xxxxx.com:80
ServerAdmin webmaster@xxxxx.com
DocumentRoot /var/www/web185/web
ServerAlias xxxx.com.hk
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
Alias  /cgi-bin/ /var/www/web185/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web185/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode On
php_admin_value open_basedir /var/www/web185/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /var/www/web185/phptmp/
php_admin_value session.save_path /var/www/web185/phptmp/

AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
Alias /stats "/var/www/web185/web/webalizer"
Alias /error/ "/var/www/web185/web/error/"
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web185/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web185/user/$1/web/$3
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
  RewriteRule .* - [F]
</IfModule>
</VirtualHost>

服务器名www.xxxxx.com:80
服务器管理员webmaster@xxxxx.com
DocumentRoot/var/www/web185/web
ServerAlias xxxx.com.hk
DirectoryIndex.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm Default.htm
别名/cgi-bin//var/www/web185/cgi-bin/
AddHandler cgi script.cgi
AddHandler cgi script.pl
ErrorLog/var/www/web185/log/error.log
AddType应用程序/x-httpd-php.php.php3.php4.php5
php_管理_标志安全_模式打开
php\u admin\u value open\u basedir/var/www/web185/
php_管理_值文件_上载1
php_admin_value upload_tmp_dir/var/www/web185/phptmp/
php_admin_value session.save_path/var/www/web185/phptmp/
AddType text/html.shtml
AddOutputFilter包括.shtml
AddType应用程序/vnd.wap.wmlscript.wmlsc.wsc
AddType text/vnd.wap.wml.wml
AddType text/vnd.wap.wmlscript.ws.wmlscript
AddType image/vnd.wap.wbmp.wbmp
别名/stats“/var/www/web185/web/webalizer”
别名/error/“/var/www/web185/web/error/”
别名匹配^/~([^/]+)(/(.*)/var/www/web185/user/$1/web/$3
别名匹配^/users/([^/]+)(/(.*)/var/www/web185/user/$1/web/$3
重新启动发动机
重写cond%{REQUEST_METHOD}^(跟踪|跟踪)
重写规则。*-[F]

这意味着别名是
xxxx.com.hk
而不是
xxxx.com
,因此
xxxx.com
进入默认页面。

对不起,我的打字错误。我的设置是正确的。不管怎样,它突然又能工作了。但我仍然想知道如何通过命令行检查apache中的serveralias结果
ServerAlias xxxx.com.hk