Re: conditional configuration

Giganews Newsgroups
Subject: Re: conditional configuration
Posted by:  William Gill (nospam@domain.invalid)
Date: Sat, 07 Aug 2010

On 7/25/2010 11:51 AM, William Gill wrote:
> Is there a simple way to have httpd.config skip or include directives
> based on some external condition. Specifically, I have development
> servers on my network and on my notebook. When I am working on something
> new I frequently have to copy things back and forth or to a flash drive.
> To make keeping track easier I want to create a virtual host on a flash
> drive and have httpd.config test for the presence of the flash drive to
> determine whether or not to include the <VirtualHost> Directive. Can
> this be done, and if so can it be done simply?
>
FYI I ended up installing two Apache services, one with -D option and
one w/o, then added an <IfDefine> directive to httpd.conf.  I can
control which version is active through Apache Monitor. Not the most
graceful, but it works.

Replies

None

In response to

conditional configuration posted by William Gill on Sun, 25 Jul 2010