in reply to Re: dynamic httpd.conf
in thread dynamic httpd.conf

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.

Replies are listed 'Best First'.
Re: Re: Re: dynamic httpd.conf
by perrin (Chancellor) on Mar 01, 2004 at 17:35 UTC
    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.