You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Matt Sergeant <ma...@sergeant.org> on 2000/09/12 15:01:39 UTC

mod_perl directives?

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
</IfPerlModule>

-- 
<Matt/>

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org | AxKit: http://axkit.org


Re: mod_perl directives?

Posted by Doug MacEachern <do...@covalent.net>.
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:
> 
> <IfPerlModule AxKit>
> 	AxAddStyleMap text/xsl Apache::AxKit::Language::Sablot
> </IfPerlModule>

you can already do that with modules that implement directive handlers:

PerlModule Apache::AxKit

<IfModule Apache::AxKit>
...
</IfModule>

i didn't realize/thinkabout it until you asked though.

p.s. have a look at mod_info's output w/ AxKit loaded if you haven't
already