This sample chapter from Pro Apache 3rd Edition from Apress
details how to use embedded Perl in Apache config files.
See the section toward the end of the chapter, titled

'Generating on the fly and included configuration files with 
mod_perl'

Not sure if you can do this in .htaccess files though.

Keith


In theory, theory and practice are the same;
In practice they are not. 

On Mon, 13 Mar 2006, Alan Little wrote:

> To: Tony Heal <users@httpd.apache.org>
> From: Alan Little <[EMAIL PROTECTED]>
> Subject: Re[2]: [EMAIL PROTECTED] Conditional Directives
> 
> That's interesting. Does that include .htaccess files? Could you give
> me an example of how to do it?
> 
> -- 
> Alan Little
> Holotech Enterprises
> 
> On Sunday, March 12, 2006, 11:43:57 PM, you wrote:
> 
> > Yes, apache conf file can be written in perl, so you can use if
> > statements to determine whether you want something installed or not
> > depending on whatever your criteria is.
> 
> > Tony Heal
> > Pace Systems Group, Inc.
> > 800-624-5999
> > [EMAIL PROTECTED]
> 
> > -----Original Message-----
> > From: Alan Little [mailto:[EMAIL PROTECTED] 
> > Sent: Sunday, March 12, 2006 7:29 AM
> > To: users@httpd.apache.org
> > Subject: [EMAIL PROTECTED] Conditional Directives
> 
> > 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.
> 
> 
> 
> ---------------------------------------------------------------------
> 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: [EMAIL PROTECTED]
>    "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to