I need to be able to tell apache to load a new conf file without all of the config being reloaded. This is because I will have many conf files and it will take 10 minutes to load them all.

basically what I want to do is 'httpd load newsite.conf'. Equally it would be nice to be able to unload a conf file that is already loaded but that is not a requirement.

I've searched and searched and I can't find the answer anywhere, I can't believe there isn't one?

Failing that, is there a way to speed up a 'httpd reload' command?

Thanks in advance! :]

link|improve this question
feedback

1 Answer

up vote 0 down vote accepted

This might be of interest: http://httpd.apache.org/docs/2.2/vhosts/mass.html

Also, .htaccess files would allow you to make changes without reloading the entire config.

link|improve this answer
Absolutely! thank you. The VirtualDocumentRoot will solve our immediate problem. The htaccess solution still requires a mapping file which will be huge with 100,000+ vhosts, probably worse in fact as that will be hit per request rather than at server load. I don't know why this page illuded me when I was searching, thank you very much for taking the time to post :] – Caseus Feb 15 '11 at 16:14
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.