in reply to dynamic httpd.conf

dragonchild, what are you trying to do? For instance I have created a setup here that is managed by a perl script that generates the httpd.conf file from a database. The process runs a few times a day grabs the info from the DB and generates a httpd.conf, then sends the signal to httpd to reread config. There may be a way to do what you want that is a little different from that approach, but I need more info on what the actual goal is.


-Waswas

Replies are listed 'Best First'.
Re: Re: dynamic httpd.conf
by dragonchild (Archbishop) on Mar 01, 2004 at 16:41 UTC
    I have four copies of the same application. One is prod, one is test, and two are the developer instances. The httpd.conf is almost exactly the same, save for about 8 values. I was trying to be cute and not have to wrap the httpd command in a process to generate the appropriate httpd.conf in the appropriate place before calling httpd, but it doesn't look like I'll be able to.

    Thanks!

    ------
    We are the carpenters and bricklayers of the Information Age.

    Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

      Most people start httpd by running the apachectl command, which is just a shell script. You can edit it or replace it with something that runs some perl code, generates httpd.conf in a temp file, and then passes that with httpd -f.