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@xxxxxxxxxxxxxxxx> > From: Alan Little <darguz@xxxxxxxxxxxx> > Subject: Re[2]: [users@httpd] 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 > > theal@xxxxxxxxxxxx > > > -----Original Message----- > > From: Alan Little [mailto:darguz@xxxxxxxxxxxx] > > Sent: Sunday, March 12, 2006 7:29 AM > > To: users@xxxxxxxxxxxxxxxx > > Subject: [users@httpd] 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: users-unsubscribe@xxxxxxxxxxxxxxxx > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > > --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx