httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject Re: Re[2]: [users@httpd] Conditional Directives
Date Sun, 12 Mar 2006 19:50:47 GMT
On 3/12/06, Alan Little <> wrote:
> Well, for example, all my sites are mirrored on my local machine, with
> a .loc TLD. There are things I use on the live sites that I don't need
> or want on the local mirror -- script wrapping, authentication, etc.
> It would make it easier if I could test HTTP_HOST and configure
> accordingly. The altertnative is to maintain separate .htaccess files,
> which is a PITB.
> I'm surprised there's no capability for this; I can't be the first
> person to have thought of it, and it seems like it would be a good
> thing to have.

The standard way to handle this is to wrap directives in
<IfDefine LocalMirror>
<IfDefine !LocalMirror>
Then start apache with -DLocalMirror on the affected machine.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message