名空间中主机的查询,用于DNS客户) Apache
Apache服务器的配置命令中的常用配置 主配置文件:/etc/httpd/conf/httpd.conf
ServerRoot、DirectoryIndex、MaxClients、 Listen、 DocumentRoot Deny 、allow 例4
(1) 将apache服务器的端口号设定为1080 (2) 设定用户网页目录为userdoc
(3) 设定apache服务器的网页根目录?/home/htdocs
(4) 在此apache服务器上设定一个目录/home/htdocs/inside,且此目录只允许IP地址为192.168.1.5的主机访问。
(5) 定义apache服务器以独立进程的方式运行。 答案:
(1) port 1080
(2) UserDir userdoc
(3) DocumentRoot “/home/htdocs” (4)
allow from 192.168.1.5 ;
(5)Server Type Standlone
例五
使用命令 vi /etc/httpd/conf/httpd.Conf打开Apache主配置文件。 1)将ServerRoot 改为“etc/httpd”
2)将DirectoryIndex修改为DirectoryIndex index.html index.html.var index.htm
3)将MaxClients改为MaxClients 150
4)将Listen 80修改为Listen 8080
5)将DocumentRoot \\修改为DocumentRoot \“
使用命令server httpd reload或server httpd stop/start
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库Linux应用基础教程期末考点整理(4)在线全文阅读。
相关推荐: