[rt-users] RT2 Apache Proxy Setup

alan milligan alan_milligan at hotmail.com
Wed Dec 12 21:17:50 EST 2001


Jesse,

I have found the initial problem:

This message appears in your log:
[Wed Dec 12 19:42:15 2001] [error] [client 127.0.0.1] client denied by 
server configuration: proxy:http://localhost:1234/

You need this directive in your httpd.conf (well your own domain):

	<Directory proxy:https://www.balclutha.org:1234>
		Order Allow,Deny
		Allow from all
	</Directory>

Then the next issue is not found: rt2/NoAuth/... on my local - not even the 
remote server dealing with the request...:
[Wed Dec 12 21:04:08 2001] [error] [client 127.0.0.1] File does not exist: 
/home/alan/src/websites/balclutha/rt/NoAuth/webrt.css
[Wed Dec 12 21:05:09 2001] [error] [client 127.0.0.1] File does not exist: 
/home/alan/src/websites/balclutha/https//www.balclutha.org/rt//NoAuth/images//rt.jpg
[Wed Dec 12 21:05:09 2001] [error] [client 127.0.0.1] File does not exist: 
/home/alan/src/websites/balclutha/https//www.balclutha.org/rt//NoAuth/images/spacer.gif

There seems to be something naf with the way the proxy URL writing is taking 
place.  If you set the alias to rt instead of rt2 it all works:
Final configuration for proxy (Apache 1.3.19):

	<Directory proxy:https://www.balclutha.org:1234>
		Order Allow,Deny
		Allow from all
	</Directory>
	ProxyPass 	 /rt  https://www.balclutha.org:1234


I have a much more complex issue to resolve now, and ideas are welcomed!  I 
use my own PerlFixupHandler - it is actually an authentication module, but I 
am too lazy to use it within <DIRECTORY> or <LIMIT> blocks everywhere :)

The proxy redirection does not work through my handler, I too was getting 
the original client denied by server configuration: 
proxy:http://localhost:1234/.

I fixed this by allowing passthru if the request is a proxy:

sub handler {
    my $req_rec = shift;
    return DECLINED if $req_rec->proxyreq;
    ....
}

Now, I get no diagnostics in my Apache log, and the 'file not found on 
server' error on my browser.

Does anyone have any ideas?


Cheers, Alan


>From: Jesse Vincent <jesse at bestpractical.com>
>To: alan milligan <alan_milligan at hotmail.com>
>CC: rt-users at lists.fsck.com
>Subject: Re: [rt-users] RT2 Apache Proxy Setup
>Date: Wed, 12 Dec 2001 01:07:11 -0500
>MIME-Version: 1.0
>Received: from [63.251.136.85] by hotmail.com (3.2) with ESMTP id 
>MHotMailBDE0412D00BE4004315D3FFB88550F8C0; Tue, 11 Dec 2001 22:16:17 -0800
>Received: from pallas.eruditorum.org (localhost [127.0.0.1])by 
>pallas.eruditorum.org (Postfix) with ESMTPid BE991111D6; Wed, 12 Dec 2001 
>01:11:26 -0500 (EST)
>Received: by pallas.eruditorum.org (Postfix, from userid 1037)id 
>83641111D6; Wed, 12 Dec 2001 01:07:11 -0500 (EST)
>From rt-users-admin at lists.fsck.com Tue, 11 Dec 2001 22:16:44 -0800
>Delivered-To: rt-users at pallas.eruditorum.org
>Message-ID: <20011212010711.Y10604 at pallas.fsck.com>
>References: <F243ZCHusMjQHtMFauk00000663 at hotmail.com>
>User-Agent: Mutt/1.2.5i
>In-Reply-To: <F243ZCHusMjQHtMFauk00000663 at hotmail.com>; from 
>alan_milligan at hotmail.com on Wed, Dec 12, 2001 at 05:54:53AM +0000
>Sender: rt-users-admin at lists.fsck.com
>Errors-To: rt-users-admin at lists.fsck.com
>X-BeenThere: rt-users at lists.fsck.com
>X-Mailman-Version: 2.0beta5
>Precedence: bulk
>List-Id: For users of RT: Request Tracker <rt-users.lists.fsck.com>
>
>
>Presuming you set up your stuff to listen to /rt2 on port 1234, How about
>
>ProxyPass /rt2  http://localhost:1234/rt2/
>
>Seeing more of your apache config file would help debugging.
>
>
>On Wed, Dec 12, 2001 at 05:54:53AM +0000, alan milligan wrote:
> > Hi guys,
> >
> > I'm trying to get rt2 going using the ProxyPass stuff in the setup
> > documentation, as database handles are precious.  I have it going quite
> > happily independently on http://localhost:1234,
> >
> > I have a single entry for this in my Apache virtual host section:
> >
> > 	ProxyPass /rt2/  http://localhost:1234/
> >
> > However, from my https://localhost/rt2 URL location, I get a 'The 
>requested
> > URL /rt2 was not found on this server' message (and for
> > https://localhost/rt2/).  It is basically ignoring my proxy request and
> > attempting to serve normally.  (If there is an issue with going from
> > http/https via a proxy - I'd expect an entirely different error ...)
> >
> > I'm new to using proxy's with Apache, but the Apache documentation 
>doesn't
> > suggest your install instructions are at all deficient.  But there is a 
>TODO
> > there with an example of a httpd.conf required.  Does my answer lie in 
>there
> > somewhere?
> >
> > Cheers, Alan
> >
> >
> >
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at 
>http://explorer.msn.com/intl.asp.
> >
> >
> > _______________________________________________
> > rt-users mailing list
> > rt-users at lists.fsck.com
> > http://lists.fsck.com/mailman/listinfo/rt-users
> >
>
>--
>http://www.bestpractical.com/products/rt  -- Trouble Ticketing. Free.
>
>_______________________________________________
>rt-users mailing list
>rt-users at lists.fsck.com
>http://lists.fsck.com/mailman/listinfo/rt-users




_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com





More information about the rt-users mailing list