1.配置文件
(1)include
主配置文件 /etc/httpd/conf/httpd.conf
include其他文件 ,这里把conf.d目录下的文件都include进来了
IncludeOptional conf.d/*.conf
(2)检查配置文件语法错误
apachectl configtest或-t
(3)模块
可以使用-l命令行选项。您还可以使用-M命令行选项查看动态加载了哪些模块。
- [root@controller ~]# apachectl -l
- Compiled in modules:
- core.c
- mod_so.c
- http_core.c
- [root@controller ~]# apachectl -M
- Loaded Modules:
- core_module (static)
- so_module (static)
- http_module (static)
- access_compat_module (shared)
- actions_module (shared)
-
-
- ...
(4).htaccess
此文件可以放在任意目录,每次请求都会加载?(待验证)
配置是否启用.htaccess
- AllowOverride All
- AllowOverride None
AccessFileName 配置其他文件名
.htaccess简介_web(song)的博客-CSDN博客_.htaccess
参考