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
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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.