Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 64313 invoked from network); 22 Dec 2007 03:44:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Dec 2007 03:44:55 -0000 Received: (qmail 36727 invoked by uid 500); 22 Dec 2007 03:44:40 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 36706 invoked by uid 500); 22 Dec 2007 03:44:40 -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 36694 invoked by uid 99); 22 Dec 2007 03:44:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Dec 2007 19:44:40 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=FM_FAKE_HELO_VERIZON,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dstroma@verizon.net designates 206.46.252.44 as permitted sender) Received: from [206.46.252.44] (HELO vms044pub.verizon.net) (206.46.252.44) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Dec 2007 03:44:28 +0000 Received: from COMPAQ ([70.16.238.192]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JTF00LGUMDI9VO4@vms044.mailsrvcs.net> for modperl@perl.apache.org; Fri, 21 Dec 2007 21:44:07 -0600 (CST) Date: Fri, 21 Dec 2007 22:44:03 -0500 From: "Dondi Stroma" Subject: Re: PerlAccessHandler problems To: "Tad Johnston" Cc: Message-id: <009b01c8444c$e5b61da0$0500a8c0@COMPAQ> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Mailer: Microsoft Outlook Express 6.00.2900.3138 Content-type: text/plain; format=flowed; charset=iso-8859-1; reply-type=response Content-transfer-encoding: 7bit X-Priority: 3 X-MSMail-priority: Normal References: <476C5373.9080507@rhythm.com> <476C6B7A.6060708@utoronto.ca> <476C70A8.9090603@rhythm.com> <476C711E.7010405@rhythm.com> X-Virus-Checked: Checked by ClamAV on apache.org Try PerlSetEnv instead :) ----- Original Message ----- From: "Tad Johnston" To: "Tad Johnston" Cc: "Adam Prime" ; Sent: Friday, December 21, 2007 9:06 PM Subject: Re: PerlAccessHandler problems > Correction* > > SetEnv PROXY_BIND localhost > > Tad Johnston wrote: >> The error log only says what it can't find which is the table it's >> trying to query from the database (because of course it's querying the >> wrong database). The $ENV{PROXY_BIND} variable should be setting it >> to the proper database which it's not.. The problem is when I do a >> warn using within the PerlAccessHandler module of >> warn("$ENV{PROXY_BIND}") it returns nothing. It's set to the >> following in apache2 startup script. >> >> SetEnv PTS_PROXY_BIND_HOST localhost >> >> Now if I don't use PerlAccessHandler, the warn returns 'localhost' >> like it should. >> >> Two questions: >> 1. Does the $ENV variables not get passed if you're using >> PerlAccessHandler? >> 2. Should I be using something else instead of this (i.e. >> PerlAuthzHandler)? The reason I ask is because I'm doing all of the >> access and authentication and redirection in the PerlAccessHandler. >> >> Thanks, >> Tad >> >> Adam Prime wrote: >>> What does the error_log say? >>> >>> Adam >>> >>> Tad Johnston wrote: >>>> I'm having problems trying to use an access handler within >>>> mod_perl2. If I have it in the conf file it returns a 500 Internal >>>> Server Error and if I don't include the PerlAccessHandler line, it >>>> runs the page just fine. What's happening is when it is turned on >>>> my $ENV for my proxy gets set to a different host. If it's turned >>>> on, the $ENV for the proxy is sent to the appropriate host. I do >>>> have a couple REDIRECT in the conf file, but they all direct to the >>>> same server. Anyone have any ideas? >>>> >>>> Tad >>>> >>>> >>> >> > > -- > Tad Johnston > Management Information Systems > Rhythm and Hues Studios > 310.448.7582 >