填空题
[说明]
配置WWW服务器是Linux操作平台的重要工作之一,而Apache是目前应用最为广泛的Web服务器产品之一。在Linux下安装Apache Web服务,Apache服务程序httpd启动时需要读取配置文件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 wedmaster@abc.com.cn
DocumentRoot /www/htdocs/abc
ServerNsme markert.abc.com.cn
ErrorLog logs/host.some_domain.com-error_log
CustomLog logs/host.some_domain.cim-access_log common
</VirtualHost>
填空题
Apache Web服务器有 1和 2两种运行方式,该服务器运行在 3方式下。
填空题
假设主机的IP地址是192.168.10.100,当用户在浏览器中输入http://192.168.10.100时显示了主页,那么该主页的文件名是 1。
填空题
httpd.conf文件中Alias/jianji "/home/zhang/jianji"一行的含义是 1。
填空题
httpd.conf文件中阴影部分的作用是 1。
填空题
命令“chkconfig-level 3 httpd on”的功能是 1。