views:

689

answers:

3

I'm using Apache 2. I know how to handle .pl files as "cgi-script", but mod_perl is supposedly way faster. I successfully built and installed mod_perl, but how do I change httpd.conf so that .pl files will be handled by mod_perl (and not as cgi-script)?

+3  A: 

This might help you: http://perl.apache.org/docs/2.0/user/config/config.html

Chris Jester-Young
Sadly, it doesn't; it doesn't say anything clear and simple about configuring handlers.
+2  A: 

I'm fairly certain as long as you have the module loaded, you can just add a

AddHandler mod_perl .pl

contagious
+5  A: 

How to do this is described in the mod_perl documentation here. In particular, read the "Registry Scripts" section.

ChrisN