Can I view the resolved config Apache is using?

3

Is there a way to view the final "effective" config a running Apache instance is using after resolving any/all includes and the like?

I'm looking at a config that has a web of includes and suspect some of the issues I'm having are related to the order in which everything falls into place. I think it's apachectl that can validate a config has no syntax errors, but I'm wondering if I can go a step further and somehow output the fully assembled config. Any advice (short of cleaning up this mess of includes that should never have been allowed to happen)?

Update: I haven't read through the docs yet, but could mod_info potentially help me with this?

Wilco

Posted 2015-06-02T18:14:00.800

Reputation: 461

This belongs on server fault I'm afraid – Julian Knight – 2015-06-02T19:13:23.460

mod_info appears to get you close via ?config. Dumping the configuration on startup: If the config define -DDUMP_CONFIG is set, mod_info will dump the pre-parsed configuration to stdout during server startup. Pre-parsed means that directives like <IfDefine> and <IfModule> are evaluated and environment varialbles are replaced. However it does not represent the final state of the configuration. In particular, it does not represent the merging or overriding that may happen for repeated directives. This is roughly equivalent to the ?config query. – ssnobody – 2015-06-03T01:41:28.077

No answers