c - Apache access the server_rec for a module -


i want @ value in server_rec.module_config. request_rec have sort of reference server_rec? not seeing 1 in httpd.h file missing it.

basically want access configuration file module while in handler , know can ap_get_module_config(). don't think request_rec.request_config or request_rec.per_dir_config store need.

help appreciated! , yes have looked through apache guide making modules (found here).

after more looking around managed come across it.

in request_rec there variable called server server_rec*. access config file use

ap_get_module_config(r->server->module_config, &my_module) 

where r request_rec passed handler.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -