Jump to content

Apache dump active configuration


Arm123

Recommended Posts

Recently I have had a mishap / laps in judgment when i overwrote one of my apache httpd.conf files, with another, from a completely different server.  I have since found a backup which is a month or so old.  However, since then i have done some work on that particular machine's apache config. and not updated the backup.  I have not yet restored the backup or restarted the server, so all is well for now until I restart the server.

 

My question is... Does anyone know or have heard of a way to get a dump of a currently parsed apache configuration file 'httpd.conf' ?

 

I would appreciate any suggestions as these files are not easily replaced because I have multiple vhosts with mod_rewrite rules and mod_php + mod_perl handlers configured.

 

Thanks for any help.

 

Link to comment
https://forums.phpfreaks.com/topic/44819-apache-dump-active-configuration/
Share on other sites

I have heard of it done. Its vvvv difficult however and I wouldnt know where to begin. You can get the config from in-memory blocks. You'll have to google it.

 

Id just use my daily backups :)

I backup /etc, /home, /var (excluding /var/tmp), /root and that will give me most of what I need.

 

-steve

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.