If you'd add
mod_perl to your configuration, you can generate your config files during boot time using Perl code, programmatically. There's an example of driving a configuration from a DBI database in the mod_perl cookbook.
-- Randal L. Schwartz, Perl hacker