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)?
相关问题
- Stop .htaccess redirect with query string
- $ENV{$variable} in perl
- .htaccess rule, redirecting old unexistent address
- How to deploy a web application Aurelia in an Apac
- Apache Directory Studio not opening
相关文章
- Apache+Tomcat+JK实现的集群,如果Apache挂了,是不是整个服务就挂了?
- Running a perl script on windows without extension
- How reliable is HTTP_HOST?
- Comparing speed of non-matching regexp
- Making a two way SSL authentication between apache
- Can NOT List directory including space using Perl
- Extracting columns from text file using Perl one-l
- UnicodeEncodeError when saving ImageField containi
I'm fairly certain as long as you have the module loaded, you can just add a
AddHandler mod_perl .pl
How to do this is described in the mod_perl documentation here. In particular, read the "Registry Scripts" section.
The following is untested by myself and can be added to an existing vhost directive file
and then any .pl or .cgi files in any of your directories will execute.
How I normally do it due to security:
The previous method will deny Directory Browsing if you need that, you should do something like this: