Slashdot Mirror


Configuring Apache From A Database?

nadachicken asks: "Has anyone found a module/solution to pull Apache configs from a database server? Currently I have a program that writes the flat file configs from the database but this seems like a waste of time if Apache could be rigged to pull the same info directly. I thought I had stumbled upon code to do this a while back, but I can't seem to find it again. If there is not such a package out there, any guess on how easy it would be to pull off?"

2 of 6 comments (clear)

  1. Why do you want this? by Leknor · · Score: 3
    If you have scripts to pull the config to a file then you've got all you need. Why add a dependency to the reliability / uptime to your web server? My database back end works very well but I really enjoy the fact that I can stop the database and still serve web pages (except the ones that pull from a DB) or I can stop sendmail and people can still check their existing mail. Anyway my point is that you have a good solution that sounds reliable and seems that it will work well and rather fail-safe. No need to mess up a good thing.

    Leknor

  2. Yes, if you're using mod_perl by merlyn · · Score: 5

    mod_perl can provide computed configuration files on the fly, directly from any database supported by DBI, for example, or even just computationally derived. There's examples of such in the mod_perl docs.