开发者

Can an Apache module inject configuration in runtime?

开发者 https://www.devze.com 2022-12-30 19:42 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消