Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2637F1087B for ; Tue, 4 Mar 2014 21:48:59 +0000 (UTC) Received: (qmail 76687 invoked by uid 500); 4 Mar 2014 21:48:55 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 76649 invoked by uid 500); 4 Mar 2014 21:48:55 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 76641 invoked by uid 99); 4 Mar 2014 21:48:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Mar 2014 21:48:55 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [209.85.216.53] (HELO mail-qa0-f53.google.com) (209.85.216.53) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Mar 2014 21:48:50 +0000 Received: by mail-qa0-f53.google.com with SMTP id w8so149003qac.26 for ; Tue, 04 Mar 2014 13:48:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=A7XIEyWTnNHfKOEoQb/uwD3RbLEAaBnLoND1HAaGmkw=; b=ElXnEDww0RUhXEomxAWQkKcxrLGR/t7sUdUQ2vtfxHBc/Lt+Xnm/r5yipbx9lT857r fVj7ojn8nbde0YFAKjSz8j//sf8cnPYWDlY2EbbhMsPEXi5dgD7S8ia+5DATL0sYGisE CQtHmEy0yD+W+GxXOVT1G9u6V0c7jadpPiRs2Q6W18NidUQfXDuY9cT+yjq+dYnKF/ar E4gNmE3Tuyl6V/4BBkGkzqCuK9vuc9KRv2jA9+pcHfHkB/ZyfgTrKntHRxFaq4GMpYJl B6eaTM27Yzn5XVYPMSE+BbzGyhMs+d51gvHaarsh4gv14/Sq3IUds4YvYzp/8K30wf54 Wl5Q== X-Gm-Message-State: ALoCoQk0LjlS8DpJkAWwQi4wfD3kKztV6nskyu0hjCPD6SYG5t2fPE+Cd13O6cdiofHmbAU/zfvN X-Received: by 10.224.161.140 with SMTP id r12mr2714220qax.24.1393969708635; Tue, 04 Mar 2014 13:48:28 -0800 (PST) Received: from localhost.localdomain (74-138-17-157.dhcp.insightbb.com. [74.138.17.157]) by mx.google.com with ESMTPSA id l6sm734989qac.8.2014.03.04.13.48.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Mar 2014 13:48:27 -0800 (PST) Message-ID: <53164A28.60605@rcbowen.com> Date: Tue, 04 Mar 2014 16:48:24 -0500 From: Rich Bowen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: users@httpd.apache.org References: <5314BE8D020000AC00023281@lhscgwiao.lhsc.on.ca> <5315F4DB.8020500@rcbowen.com> <5315ED63020000AC00023344@lhscgwiao.lhsc.on.ca> In-Reply-To: <5315ED63020000AC00023344@lhscgwiao.lhsc.on.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] mod_rewrite redirect to login page On 03/04/2014 03:12 PM, Keith Lawson wrote: >> >I suspect that you might be able to do the same thing with >> > >> >ErrorDocument 403https://sso.lhsc.on.ca/signauto/in >> > >> >and avoid the convolutions of mod_rewrite here. Assuming your in-house >> >mod_perl auth handler returns a 403 on auth failure. > Actually that's how Apache2::Authcookie works. So with a single login page it redirects to a form that you configure. My challenge here is that I need to redirect to different authentication pages depending on the IP the request comes from. > > I ended up solving the problem by implementing it in the authz handler but unless I'm reading the documentation incorrectly it should be possible with mod_rewrite too. It probably should, but LA-U is a finicky beast. -- Rich Bowen - rbowen@rcbowen.com - @rbowen http://apachecon.com/ - @apachecon --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org