Modules register a configuration callback called on every declared option. So they don't need to know where the configuration file is; they get called with the parsed config-file options. See http://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/examples/mod_example_hooks.cfunction cmd_example.
-Josh