以RPM方式安装的Apache服务器,Apache的主配置文件是(18)。如果允许以“http://www.wg2006.com.cn/w
以RPM方式安装的Apache服务器,Apache的主配置文件是(18)。如果允许以“http://www.wg2006.com.cn/wg_wg.html”方式访问用户的个人主页,必须通过(19)指令设置个人主页文档所在的目录。
A.index.html
B.httpd.conf
C.apache.conf
D.srm.conf
以RPM方式安装的Apache服务器,Apache的主配置文件是(18)。如果允许以“http://www.wg2006.com.cn/wg_wg.html”方式访问用户的个人主页,必须通过(19)指令设置个人主页文档所在的目录。
A.index.html
B.httpd.conf
C.apache.conf
D.srm.conf
以RPM方式安装的Apache服务器,Apache的主配置文件是(60)。
A.index.html
B.httpd.conf
C.apache.conf
D.srm.conf
在Linux操作系统中,以RPM方式安装的Apache服务器,其配置文件默认存储在(29)目录中。
A./var/www/html
B./var/www/usage
C./etc/httpd/conf
D./Var/log/httpd
认真阅读下列有关Linux操作系统环境下配置Apache服务器的技术说明,根据要求回答问题1至问题5。
【说明】
随着电子商务日益普及,A公司建构了一台装有Redhat Linux 9.0操作系统的虚拟服务器,为各类客户提供网上架构商务站点的Web服务。历史数据显示,该Web服务器每天约有数百万人的访问量,因此选择Linux+Apache的Web服务器架构方式,并且对该Apache服务器精心配置,以适应高负荷、大吞吐量的工作要求。Apache的特点是简单、速度快、性能稳定、完全免费、完全源代码开放,它提供了包括虚拟主机、目录索引、目录别名、HTTP日志报告及联机手册man等丰富的功能。
在安装Redhat Linux 9.0操作系统的过程中,如果没有选择安装Web服务器,Apache服务器则需要手动安装。现从http://httpd.apache.org网站上免费下载了一个apache-2.2.3 RPM格式的软件包,请将以下(1)空缺处的命令填写完整以完成该软件包的安装。
[root@gcz root](1)
以RPM方式安装的Apache服务器,其配置文件默认存储在(2)目录中。
【供选择的答案】
(2) A./var/www/html B./var/www/usage
C./etc/httpd/conf D./var/log/httpd
A./var/log/accesslog
B./var/log/httpd/errorlog
C./var/log/errorlog
D./var/log/httpd/accesslog
请在(5)~(11)空白处填写恰当的内容。
Apache的主配置文件为httpd.conf。某Web服务器的httpd.conf文件部分内容如下:
ServerType Standalone
ServerROOt "/etc/httpd"
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 20
StartServers 8
MaxClients 150
MaxRequestsPerChild 100
Port 8080
User nobody
Group nobody
ServerAdmin root@webtest.com.cn
ServerName WebTest
DocumentRoot "/home/webtest/jakarta- tomcat/webapps/webtest"
Options FollowsymLinks
AllowOverride None
Options Indexes Includes FollowSymLinks
AllowOverride None
Order allow, deny
Allow from all
DirectoryIndex index.html index.htm index.shtm1 index.cgi
Alias /doc/ /usr/doc/
Order deny, allow
deny from all
allow from localhost
Options Indexes FollowSymLinks
以RPM方式安装的Apache服务器,配置文件httpd.conf存储在Linux的(5)目录下。根据上述配置文件,该Web服务器运行在(6)模式下,其运行效率比在inetd模式下(7);当某个Web连接超过(8)秒没有数据传输时,系统断开连接。
如果客户需要访问Linux服务器上/usr/doc目录,则应在浏览器地址栏中输入(9)。
虚拟主机是指在同一台服务器上实现多个Web站点。虚拟主机可以是基于IP地址的虚拟主机,也可以是基于(10)的虚拟主机。创建基于(10)的虚拟主机时,还需要配置(11),并在区数据库文件中添加相关记录。
A.httpd.conf
B.srm.conf
C.access.conf
D.apache.conf
阅读以下说明,回答问题1~5,将答案填入对应的解答栏内。
配置WWW服务器是Linux操作平台的重要工作之一,而Apach是目前应用最为广泛的Web服务器产品之一。在Linux下安装Apache Web服务,Apache服务程序http启动时需要读取配置文件httpd.conf,以下是一个httpd.conf配置文件的片断:
httpd.conf--Apache HTTP server configuration file
Section 1:Global Environment
ServerType standalone
ServerRoot "/etc/httpd"
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MaxClients 150
Section 2:'Main'server configuration
Port 80
User apache
Group apache
ServerAdmin webmaster@abc.com.cn
ServerName www.abc.com.cn
DocumentRoot"/var/www/html"
UserDir public_html
DirectoryIndex index.html
Alias/Jianji"/home/zhang/jianji"
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
ErrorDocument 404/missing.html
Section 3:Virtual Hosts
NameVirtualHost 192.168.10.101
<VirtualHost 192.168.10.101>
ServerAdmin webmaster@abc.com.cn
DocumentRoot /www/htdocs/abc
ServerName markert.abc.com.cn
ErrwrLog logs/host.some_domain.com-error_log
CustomLog log/host.some_domain.com-access_log common
</VirtuaHost>
Apache web服务器有(1)和(2)两种运行方式,该服务器运行在(3)方式下。
阅读以下说明,回答问题1~5,将答案填入答题纸对应的解答栏内。
配置WWW服务器是Linux操作平台的重要工作之一,而Apach是目前应用最为广泛的Web服务器产品之一。在Linux下安装Apachc Web服务,Apache服务程序httod启动时需要读取配置文件httpd.conf,以下是一个hupd.conf配置文件的片断:
httpd.conf--Apache HTTP server configuration file
Section 1:Global Environment
ServerType standalone
ServerRoot"/etc/httpd"
Timeout 300
KeepAl ive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MaxClient 150
Section 2: 'Main'server configuration
Port 80
User apache
Group apache
ServerAdmin webmaster@abc.com.cn
ServerName www.abc.com.cn
DocumentRoot"/var/www/html"
UserDir public_html
DirectpryIndex index.html
Alias /jianji"/home/zhang/jianji"
ScriptAlias/cgi-bin/"/var/www/cgi-bin/"
ErrorDocument 404/missing.html
Section 3:Virtual HostS
NameVirtualHost 192.168.10.101
<VirtualHost 192.168.10.101>
ServerAdmin webmaster@abc.com.cn
DocumentRoot/www/htdocs/abc
ServerName markert.abc.com.cn
ErrorLog logs/host.some_domain.com-error_log
CustomLog logs/host.some_domain.com_access log common
</VirtualHost>
Apache Web服务器有哪两种运行方式?该服务器运行在什么方式下?
配置WWW服务器是UNIX操作平台的重要工作之一,而Apache目前是应用最为广泛的Web服务器产品之一,(1)是Apache的主要配置文件。URL根目录与服务器本地目录之间的映射关系是通过指令(2)设定的;指令 Server Admin的作用是(3);而设置index.html或default.html为目录下默认文档的指令是(4);如果允许以“http://www.xxx.edu.cn/~username”方式访问用户的个人主页,必须通过(5)指令设置个人主页文档所在的目录。
A.httpd.com
B.srm.conf
C.access.conf
D.apache.conf
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!