apache的配置文件和相关说明

来源:互联网 发布:淘宝客服主要负责什么 编辑:程序博客网 时间:2024/06/01 19:34

apache 常用的web服务器,可安装在windows 和 liunx环境下

在centos6.5 或者 7 ,默认安装后的主要的配置和文件如下:

文件 地址 务目录 /etc/httpd 主配置文件 /etc/httpd/conf/httpd.conf 网站数据目录 /var/www/html 访问日志 /var/log/httpd/access_log 错误日志 /var/log/httpd/error_log

重点关注 httpd.conf

参数字段名 作用 ServerRoot 服务目录 ServerAdmin 管理员邮箱 User 运行服务的用户 Group 运行服务的用户组 ServerName 网站服务器的域名 DocumentRoot 网站数据目录 Listen 监听的IP地址与端口号 DirectoryIndex 默认的索引页页面 ErrorLog 错误日志文件 CustomLog 访问日志文件 Timeout 网页超时时间,默认为300秒. Include 需要加载的其他文件
0 0