Can an Apache module inject configuration in runtime?
I wonder if it's possible for an Apache module to change global config structures.
What I want to achieve is injecting new vhosts without Apache restart. Of course I'm aware that the changes would fully take effect after all workers have开发者_开发技巧 recycled, but for me - it's still better than a restart.
I've written an Apache module before, but the configuration is an unknown land to me. While reading config.c, I noticed that a function called ap_build_config() could be helpful, but how do I call it to do what I need? Is it at all possible?
The mailing list guys have answered this question quite well.
http://mail-archives.apache.org/mod_mbox/httpd-modules-dev/201006.mbox/%3cAANLkTin0pST2aEpfhNJBXVwMG7stzi7JDPEMSLftADth@mail.gmail.com%3e
精彩评论