Java Mailing List Archive

http://www.apache-httpd.com/

Home » modperl.perl »

Running CGI scripts after mod_perl.

Anthony R Fletcher

2009-06-25

Replies: Find Java Web Hosting

Author LoginPost Reply
I have a mod_perl 2 module, running in Apache 2.2,

-------------------------------------------------
package Apache2::NNNN;

use 5;
use strict;

use Apache2::Const -compile => qw(DECLINED);

sub handler
{
    return Apache2::Const::DECLINED;
}


1;
-------------------------------------------------

and this is enabled in a .htaccess file via

 SetHandler modperl
 PerlResponseHandler Apache2::NNNN

Without the .htaccess config above CGI scripts run fine. With the above
the actual script is returned.

How do I get Apache to process the .cgi scripts as CGI scripts and not
as just text files?


     Anthony.




©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.