Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 50532 invoked from network); 22 Jul 2009 13:40:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Jul 2009 13:40:29 -0000 Received: (qmail 99564 invoked by uid 500); 22 Jul 2009 13:40:30 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 99233 invoked by uid 500); 22 Jul 2009 13:40:29 -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 98419 invoked by uid 99); 22 Jul 2009 13:39:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jul 2009 13:39:32 +0000 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [129.74.250.57] (HELO mx-p1.cc.nd.edu) (129.74.250.57) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jul 2009 13:39:21 +0000 Received: from mta-1.cc.nd.edu (mta-1.cc.nd.edu [129.74.250.35]) by mx-p1.cc.nd.edu (Switch-3.3.0/Switch-3.3.0) with ESMTP id n6MDYhfZ020159 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Wed, 22 Jul 2009 09:34:43 -0400 Received: from lib-725.library.nd.edu (lib-725.library.nd.edu [129.74.18.199]) (authenticated bits=0) by mta-1.cc.nd.edu (Switch-3.3.0/Switch-3.3.0) with ESMTP id n6MDcvM1004078 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Wed, 22 Jul 2009 09:38:58 -0400 (EDT) Message-Id: <55E484F6-68F2-4CD1-88C8-2FB2C7D23F89@infomotions.com> From: Eric Lease Morgan To: mod_perl In-Reply-To: <4A66901F.6000304@utoronto.ca> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Subject: Re: rewriterule, location, and perlhandler Date: Wed, 22 Jul 2009 09:38:57 -0400 References: <4F090B4A-0A73-4849-9F45-6E6A5F58963D@infomotions.com> <4A666F31.8090002@aevum.de> <0116E9D5-1104-46D9-9510-A6C39D5BC357@infomotions.com> <4A66901F.6000304@utoronto.ca> X-Mailer: Apple Mail (2.935.3) X-Source-IP: 129.74.250.35 X-ND-MTA-Date: Wed, 22 Jul 2009 09:34:44 EDT X-Virus-Checked: Checked by ClamAV on apache.org On Jul 22, 2009, at 12:05 AM, Adam Prime wrote: >>>> >>>> SetHandler perl-script >>>> PerlHandler Apache2::Alex::SemanticWeb >>>> >>>> >>>> What am I doing wrong? Does an actual file need to exist in order >>>> for >>>> mod_perl to find it? >>> >>> No. >> >> I didn't think so, but what sort of configuration do I need to do >> so my >> mod_perl packages get executed without the existence of a file? > > You need to use Handlers. See this link for a really simple example > of > a ResponseHandler, and how to configure it. > > http://perl.apache.org/docs/2.0/user/intro/start_fast.html#Handler_Modules By first changing my Location directive to the following: SetHandler perl-script PerlHandler Apache2::Alex::SemanticWeb And then changing my RewriteRule to this: RewriteRule ^/etexts/id/(.*) /sandbox/semantic-web/?id=$1 [passthrough] I eliminate the need to have a file on my file system. Thank you. oss++ * mailing_lists++ -- Eric Lease Morgan