httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Little <dar...@holotech.net>
Subject Re[2]: [users@httpd] Conditional Directives
Date Sun, 12 Mar 2006 19:38:34 GMT
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.

-- 
Alan Little
Holotech Enterprises

On Sunday, March 12, 2006, 11:37:52 AM, you wrote:


> On 3/12/06, Alan Little <darguz@holotech.net> wrote:
>> Is there a general way to make Apache directives conditional, based on
>> such things as environment variables, presence of a file or directory,
>> etc.? I'm familiar with such things as IfModule or IfDefine, but want
>> something more  general. I've searched all day and can't find
>> anything, but perhaps I'm  overlooking something.

> Not in general.  Many similar things can be accomplished with
> mod_rewrite, but you'd need to be more specific about what you are
> trying to do.

> Joshua.

> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message