未分类题
● 某 Apache 服务器的配置文件 httpd.conf 包含如下所示配置项。在(32)处选择合
适的选项,使得用户可通过 http://www.test.cn 访问到该 Apache 服务器;当用户访问 http://
111.25.4.30:80 时,会访问到 (33) 虚拟主机。
NameVirtualHost 111.25.4.30: 80
<VirtualHost 111.25.4.30: 80>
ServerName www.othertest.com
DocumentRoot /www/othertest
</VirtualHost>
<VirtualHost 111.25.4.30: 80>
ServerName (32)
DocumentRoot /www/otherdate
</VirtualHost>
<VirtualHost 111.25.4.30: 80>
ServerName www.test.com
ServerAlias test.com *.test.com
DocumentRoot /www/test
</VirtualHost>
(32)
A.www.othertest.com
B.www.test.com
C.www.test.cn
D.ftp.test.com
(33)
A.www.othertest.com
B.www.test.com
C.www.test.cn
D.ftp.test.com
A.conf
B.test.cn
C.25.4.30:80
D.25.4.30:
E.25.4.30:
F.othertest.com
G.25.4.30:
H.25.4.30:
I.test.com
J.com
K.test.com
L.www.othertest.com
M.www.test.com
N.www.test.cn
O.ftp.test.com
P.www.othertest.com
Q.www.test.com
R.www.test.cn
S.ftp.test.com
【参考答案】
C,A