Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 1389 invoked by uid 6000); 3 Feb 1998 20:49:14 -0000 Received: (qmail 1381 invoked from network); 3 Feb 1998 20:49:12 -0000 Received: from tyree.iii.co.uk (193.117.77.66) by taz.hyperreal.org with SMTP; 3 Feb 1998 20:49:12 -0000 Received: from iii.co.uk (scarfell.strand.iii.co.uk [192.168.7.22]) by tyree.iii.co.uk (8.8.8/8.8.8) with ESMTP id UAA23820 for ; Tue, 3 Feb 1998 20:43:52 GMT Message-ID: <34D781EA.B0727D7B@iii.co.uk> Date: Tue, 03 Feb 1998 20:45:31 +0000 From: Michael Smith Organization: interactive investor X-Mailer: Mozilla 4.04 [en] (X11; I; Linux 2.0.27 i586) MIME-Version: 1.0 To: new-httpd@apache.org Subject: Re: Proxy Rewriting adds headers? References: <34D6FDAB.14533DA1@iii.co.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org Agh - I'm a fool - this only happens when you mess up your headers - you can get away with it when there's no proxy involved. Time for me to lie down in a darkened room > Dear All, > > I'm finding that if I use Rewrites with proxying, I sometimes get > undesirable headers added to the result (namely when I am trying to get > a rewrite). For example, I have this in httpd.conf on this-machine > > RewriteRule /script http://other-machine/script > > If I talk direct to other-machine > > [22]> telnet other-machine 8000 > Trying 193.117.77.66... > Connected to tyree. > Escape character is '^]'. > GET /script HTTP/1.0 > > Status: 302 Found > Uri: xxxx > Location: xxxx > Content-type: text/html > Connection closed by foreign host. > > This is output from CGI.pm, and it's fine - exactly what I would want. > > If I talk to other-machine through this-machine (i.e. via the proxy) > > [23]> telnet this machine > Trying 193.117.77.66... > Connected to tyree. > Escape character is '^]'. > GET /script HTTP/1.0 > > HTTP/1.0 200 OK > Date: Tue, 03 Feb 1998 11:04:38 GMT > > Status: 302 Found > Uri: xxxx > Location: xxxx > Content-type: text/html > Connection closed by foreign host. > > Which the browser does not interpret as a redirection instruction. So, > the obvious question is, how do make sure my redirection makes it > through the proxying process unscathed? > > Mike