How do I make Apache handle .pl (Perl) files, using mod_perl?

Interbitter picture Interbitter · Jan 3, 2009 · Viewed 9.6k times · Source

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)?

Answer

ChrisN picture ChrisN · Jan 3, 2009

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