题目内容

WEB服务器的IP地址为192.168.113.5。要求创建两个虚拟主机jack.demo.com和tom.demo.com,两个虚拟主机均对应IP地址192.168.113.5。根据以上案例,要求写出apache主配置文件中,其中一个用户的虚拟主机指令如何配置。

查看答案
更多问题

若要设置Web站点根目录的位置,应在配置文件中通过( )配置语句来实现。

A. ServerRoot
B. ServerName
C. DocumentRoot
DirectoryIndex

若要设置网站的默认主页,应在配置文件中通过( )配置语句来实现。

A. RootIndex
B. ErrorDocument
C. DocumentRoot
DirectoryIndex

Listen配置用于设置Apache服务器的监听端口,Apache服务的默认监听端口为( )。

A. 21
B. 25
C. 80
D. 110

Apache服务器的主配置文件是( )。

A. /etc/apache/apached.conf
B. /etc/web/webd.conf
C. /etc/httpd/httpd.conf
D. /etc/httpd/conf/httpd.conf

答案查题题库