On 11 Sep 2011, at 06:36, Suneet Shah wrote: > Hello, > > I am new to creating apache modules. I need to create a module very similar > to mod_headers where I need to add headers to a request. However, instead of > getting the headers from a config file I need to get it the details from my > database.
Are you sure you need a new module? mod_rewrite can set headers for you, and RewriteMap can get them from a database. If you are writing a new module, you could look at how that works. Also, be sure to check out mod_dbd for how to access SQL databases more generally. -- Nick Kew