Linux16-Apache服务器的配置

来源:互联网 发布:软件项目经理 编辑:程序博客网 时间:2024/05/17 02:54

(一)基本操作和配置文件

主要执行的操作有:

1.在yum源中查找apache软件  yum  search  httpd

2.安装   yum  install  httpd.i386

3.启动httpd服务    service  httpd  start/stop/restart/status


主配置文件:  /etc/httpd/conf/httpd/http.conf

服务器根目录(Server Root):  /etc/httpd

根文档目录(Document Root):  /var/www/html

访问日志:  /etc/httpd/logs/access_log

错误日志:: /etc/httpd/logs/error_log

模块路径:  /etc/httpd/modules


(二)虚拟目录映射

(三)用户认证登录

(四)配置虚拟主机

0 0
原创粉丝点击