Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 52265 invoked from network); 25 Jun 2009 21:51:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Jun 2009 21:51:53 -0000 Received: (qmail 79917 invoked by uid 500); 25 Jun 2009 21:52:03 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 79876 invoked by uid 500); 25 Jun 2009 21:52:03 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 79868 invoked by uid 99); 25 Jun 2009 21:52:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jun 2009 21:52:03 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of arif@mail.nih.gov designates 128.231.90.107 as permitted sender) Received: from [128.231.90.107] (HELO nihrelayxway2.hub.nih.gov) (128.231.90.107) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jun 2009 21:51:53 +0000 X-IronPortListener: NIH_Relay X-SBRS: None X-IronPort-AV: E=Sophos;i="4.42,292,1243828800"; d="scan'208";a="114134798" Received: from cake.cit.nih.gov ([165.112.93.31]) by nihrelayxway2.hub.nih.gov with ESMTP; 25 Jun 2009 17:51:31 -0400 Received: from cosy.cit.nih.gov (cosy.cit.nih.gov [165.112.92.67]) by cake.cit.nih.gov (8.13.8/8.13.8) with ESMTP id n5PLpV4d006671 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 25 Jun 2009 17:51:31 -0400 Received: (from arif@localhost) by cosy.cit.nih.gov (8.14.3/8.14.1/Submit) id n5PLpVns003655 for modperl@perl.apache.org; Thu, 25 Jun 2009 17:51:31 -0400 X-Authentication-Warning: cosy.cit.nih.gov: arif set sender to Anthony R Fletcher using -f Date: Thu, 25 Jun 2009 17:51:31 -0400 From: Anthony R Fletcher To: modperl@perl.apache.org Subject: Running CGI scripts after mod_perl. Message-ID: <20090625215131.GA3433@cosy.cit.nih.gov> Mail-Followup-To: modperl@perl.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (cake.cit.nih.gov [165.112.93.31]); Thu, 25 Jun 2009 17:51:32 -0400 (EDT) X-Virus-Checked: Checked by ClamAV on apache.org 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.