I'm writing some apache (2.2) modules in C and I'm pretty new at it, so I was wondering:
I need to know if it's possible to create a global variable that will be initiated whenever the apache server starts to run.
See, I need to have a list of host names (that will be "privileged"), so that every request I get, I need to check if the host name appears in the list (to check if it's "previleged").
So the list should be global (so that every server instance will have the same instance of the list), and I need to initialize it at the beginning.
How do I do that, if it's at all possible?
Thanks!