Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 34819 invoked from network); 21 May 2008 00:12:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 May 2008 00:12:37 -0000 Received: (qmail 87296 invoked by uid 500); 21 May 2008 00:12:33 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 87272 invoked by uid 500); 21 May 2008 00:12:33 -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 87261 invoked by uid 99); 21 May 2008 00:12:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 May 2008 17:12:33 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 May 2008 00:11:38 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Jybvz-0005dq-Fx for modperl@perl.apache.org; Tue, 20 May 2008 17:11:59 -0700 Message-ID: <17353562.post@talk.nabble.com> Date: Tue, 20 May 2008 17:11:59 -0700 (PDT) From: fof To: modperl@perl.apache.org Subject: Re: PerlAuthenHandler and ErrorDocument 401 In-Reply-To: <200805201018.20591.torsten.foertsch@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: fof@brainstorm.net.au References: <17330888.post@talk.nabble.com> <200805201018.20591.torsten.foertsch@gmx.net> X-Virus-Checked: Checked by ClamAV on apache.org Torsten Foertsch wrote: > > On Tue 20 May 2008, fof wrote: >> >> PerlAuthenHandler MyAuthenHandler >> AuthType Basic >> AuthName "REST Interface" >> Require valid-user >> >> >> ErrorDocument 401 /http/401.html > > Try: > > > Satisfy any > > > Torsten > > -- > Need professional mod_perl support? > Just hire me: torsten.foertsch@gmx.net > > Hey Torsten thanks for the reply but no that does not work either. I think the real problem I am facing revolves around the reasons why the directory /REST/ from my document root cannot be secured with a PerlAuthenHandler on its own. It does not matter if I set the Location as or in the VirtualHost configuration the PerlAuthenHandler still kicks in for the root directory regardless. That is to say that http://rest.mydomain.com/REST/abc.html and http://rest.mydomain.com/abc.html are secured by the PerlAuthenHandler regardless of what I set the path to. This is the part that is puzzling me the most. I think if I solve that then the other stuff will just work. I am going to try removing the PerlAuthenHandler and simply secure the directory with a htpasswd thus taking mod_perl out of the picture. This will tell me if some Apache setting in the main server config is being inherited by my virtual host and stuffing things up and if it is a mod_perl problem. Any other suggestions would be appreciated :) Let ya know how I go. Geoff T -- View this message in context: http://www.nabble.com/PerlAuthenHandler-and-ErrorDocument-401-tp17330888p17353562.html Sent from the mod_perl - General mailing list archive at Nabble.com.