Forum Moderators: phranque

Message Too Old, No Replies

Cache httpd.conf at runtime

Need to backup the current httpd config at apache's runtime

         

mastersin

11:34 am on Dec 28, 2010 (gmt 0)

10+ Year Member



Hi!

I've a damn problem. I just deleted some vhost file on my server and dont have a backup. The Apache (2) ist still running with the old config loaded. Is there any possible way to look at the current config at runtime without losing my current configuration?

May the config is loaded in any special way I can open it and copy and paste the stuff I need?

My httpd.conf is build up like:

include ports.conf
include vhosts_1.conf
include vhosts_2.conf
and so on...

Does the apache load all the data above in one file or is he just looking up and configure it on the fly? Thanks for all the help!

Brett_Tabke

3:08 am on Dec 30, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



It parses it and compiles it into memory at run time. It does not "cache" it.