mod_perl IfModule directives?

2000-09-12 Thread Matt Sergeant
I know this isn't in mod_perl yet, so take this as a feature request :-) What I'd like to see is a mod_perl equivalent of IfModule, so that I can add custom config directives to my httpd.conf perfectly safely: IfPerlModule AxKit AxAddStyleMap text/xsl Apache::AxKit::Language::Sablot

RE: mod_perl IfModule directives?

2000-09-12 Thread Geoffrey Young
-Original Message- From: Matt Sergeant [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 12, 2000 9:02 AM To: [EMAIL PROTECTED] Subject: mod_perl IfModule directives? I know this isn't in mod_perl yet, so take this as a feature request :-) What I'd like to see

RE: mod_perl IfModule directives?

2000-09-12 Thread Matt Sergeant
On Tue, 12 Sep 2000, Geoffrey Young wrote: cool idea... is Perl $AxAddStyleMap = "text/xsl Apache::AxKit::Language::Sablot" if Apache-module('AxKit'); /Perl good enough for the moment? I'm not convinced that will work, since it sets the directives in the

RE: mod_perl IfModule directives?

2000-09-12 Thread Geoffrey Young
-Original Message- From: Matt Sergeant [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 12, 2000 9:21 AM To: Geoffrey Young Cc: [EMAIL PROTECTED] Subject: RE: mod_perl IfModule directives? On Tue, 12 Sep 2000, Geoffrey Young wrote: cool idea... is Perl

RE: mod_perl IfModule directives?

2000-09-12 Thread Matt Sergeant
On Tue, 12 Sep 2000, Geoffrey Young wrote: I'm not convinced that will work, since it sets the directives in the Apache::ReadConfig package, not mine. I just tested it with Apache::Dispatch, which also uses ModuleConfig, and it works just fine. I guess it depends on the mechanism you

Re: mod_perl IfModule directives?

2000-09-12 Thread Doug MacEachern
On Tue, 12 Sep 2000, Matt Sergeant wrote: I know this isn't in mod_perl yet, so take this as a feature request :-) really, how do you know that? ;) What I'd like to see is a mod_perl equivalent of IfModule, so that I can add custom config directives to my httpd.conf perfectly safely: