检查Apache是​​否加载了特定的configuration?

有很多configuration文件,我把一个文件,但我没有看到它的影响。

无论是我的configuration是错误的,或configuration文件不被Apache加载。

有没有一个命令,我可以看到一个特定的configuration文件被Apache加载或不?

apachectl configtest 

不打印错误。 服务器重新启动没有错误。

在命令行中,您还可以使用Apache二进制文件运行以下参数以获取更多信息:

 -t -D DUMP_VHOSTS : show parsed vhost settings -t -D DUMP_RUN_CFG : show parsed run settings -t -D DUMP_MODULES : show all loaded modules 

希望这可以帮助!

如果你有mod_info模块激活,只需访问

 http://[you server's IP]/server-info 

你会看到整个Apacheconfiguration。