首页 > 解决方案 > 如何打印所有活动的 httpd 配置参数?

问题描述

例如,我用命令启动 apache

$ docker run -d --name a2 httpd httpd -X -DFOREGROUND -DFOO -DBAR

如何打印所有传递的配置参数-D

预期输出为

FOREGROUND
FOO
BAR

我试着看apachectl,按照DUMP_命令

-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 
-t -D DUMP_INCLUDES: show all included configuration files

但是没有一个命令可以做到这一点

标签: apache

解决方案


推荐阅读