草庐IT

RevealServerTag

全部标签

c++ - 如何为我的 Apache 模块定义自定义配置指令?

我想做的是从httpd.conf向我的模块传递一些设置,例如:SetHandlermymodule-handler#basedonthis,themodulewillkickinand"try"toreadsettingsMyCustomStringSetting"AStringValue"MyCustomIntegerSetting2012#more如何从模块中获取“AStringValue”和“2012”? 最佳答案 这是来自“Apache:权威指南”的完整示例(带源代码):http://docstore.mik.ua/orel