Is there a method of viewing/exporting the current running config of Apache as a single file?

I'm running Apache2 on Ubuntu and the configuration is spread over several files. Is there a command to export all configuration data in use to a single file?

I would like to compare it to another servers configuration in a side by side manner.


Solution 1:

Yes. Enable mod_info, browse to your server at http://your.host.example.com/server-info , and save the file.

Apache Module mod_info

Description: Provides a comprehensive overview of the server configuration

This can be very handy to compare the running configuration for two or more Apache nodes in a webserver cluster.