Mod_Perl AddType .pl execution on apache

apache-2.2mod-perlmod-phpperl

I've recently been using PHP via mod_php, and I assumed that getting mod_perl running properly was going to require a similar setup:

AddType application/x-httpd-php .php

unfortunately this does nothing with mod_perl using:

AddType application/x-httpd-perl .pl

the entire script is simply sent out with a

Content-Type: application/x-httpd-perl

header.

Why doesn't mod_perl execute scripts flagged as application/x-httpd-perl as mod_php does with scripts flagged as application/x-httpd-php?

Best Answer

They use different approaches to execute scripts.

This document http://perl.apache.org/docs/2.0/user/intro/start_fast.html describes how to install mod_perl handler for scripts in some directory. The "Registry Scripts" section is exactly what you need.

Related Topic