What I want to do is pass some settings to my module from httpd.conf, something like:
<Location /path>
SetHandler mymodule-handler # based on this, the module will kick in and "try" to read settings
MyCustomStringSetting "AStringValue"
MyCustomIntegerSetting 2012
# more
</Location>
How can I get “AStringValue” and “2012” from within the module?
Here is a complete example (with source) from “Apache: The Definitive Guide”:
http://docstore.mik.ua/orelly/linux/apache/ch15_04.htm
The example module mod_reveal implements two commands, RevealServerTag and RevealTag.
In the server configuration, these two new commands can be used:
And then processed by the module.