httpd服务程序的配置信息被写到  /etc/httpd/conf.d/xxx.conf 这样的文件中,其实也就等于写在主配置文件 /etc/httpd/conf/httpd.conf里。

 

因为这写文件在httpd主配置文件生效的时候,就已经被加载进来了。

vim /etc/httpd/conf/httpd.conf

打开主配置文件,按下G进入尾行,我们看到

# Supplemental configuration
#
# Load config files in the "/etc/httpd/conf.d" directory, if any.
IncludeOptional conf.d/*.conf
 

这表示,包含相对目录conf.d下,所有以.conf后缀的配置文件的信息。