I have a problem that the storage of rules in mod_security.
I debug the mod_security in linux with gdb.when i run the code to the point(mod_security2.c:330),
i found that "msr->dcfg1 = (directory_config *)ap_get_module_config(r->per_dir_config, &security2_module);"

(gdb)p *msr->dcfg1->ruleset->phase_request_headers

the result tell me there are 48 rules(may be more,because someone added the rules) in the struct member of phase_request_headers.
my problem is that: how to do this?when did you divide the rules?in which function?

My english is not well,and thank you for your help. i wish you can help me!