前提
httpd 2.4编译安装的目录是/usr/local/apache,配置文件目录是/etc/httpd249/
配置文件目录结构
1
2
3
4
5
6
7
|
/etc/httpd249/httpd
.conf
# 主配置文件
/etc/httpd249/extra/httpd-default
.conf
# 默认配置文件(包括keepalive和AccessFileName设置等)
/etc/httpd249/extra/httpd-userdir
.conf
# 用户目录配置文件
/etc/httpd249/extra/httpd-mpm
.conf
# MPM配置文件
/etc/httpd249/extra/httpd-ssl
.conf
# SSL配置文件
/etc/httpd249/extra/httpd-vhosts
.conf
# 虚拟主机配置文件
/etc/httpd249/extra/httpd-info
.conf
# server-status页面配置文件
|
监听套接字
检查监听端口
配置使用keep-alive
DSO模块加载
检查DSO模块加载情况(通过2种方式查询已加载的模块数量应该相等)
更正:在此的/etc/init.d/httpd249 -M 应该修改为/usr/local/apache/bin/httpd -M
配置站点根目录
配置页面访问属性
====
定义默认主页面
配置用户目录
检查用户目录
设置路径别名
配置支持压缩
本文转自 xxrenzhe11 51CTO博客,原文链接:http://blog.51cto.com/xxrenzhe/1381373,如需转载请自行联系原作者