From owner-freebsd-questions Mon Jun 11 5:47:57 2001 Delivered-To: freebsd-questions@freebsd.org Received: from clientmail.realtime.co.uk (simian.realtime.co.uk [194.205.134.131]) by hub.freebsd.org (Postfix) with ESMTP id 5400837B403 for ; Mon, 11 Jun 2001 05:47:52 -0700 (PDT) (envelope-from waynep@pan.realtime.co.uk) Received: from pan.realtime.co.uk ([194.205.134.207]) by clientmail.realtime.co.uk with esmtp (Exim 3.20 #1) id 159R6l-00006a-01 for freebsd-questions@freebsd.org; Mon, 11 Jun 2001 13:47:51 +0100 Received: from waynep by pan.realtime.co.uk with local (Exim 3.22 #1) id 159R6Q-0000En-00 for freebsd-questions@freebsd.org; Mon, 11 Jun 2001 13:47:30 +0100 From: Wayne Pascoe To: freebsd-questions@freebsd.org Subject: Apache proxy pass / rewrite question Date: 11 Jun 2001 13:47:30 +0100 Message-ID: <86iti3npy5.fsf@pan.realtime.co.uk> Lines: 40 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi all, I have two servers both with the same content. This used to all be on one server. We want all requests to the CMS for editing to be passed to the second server now. The problem with this is that we would have two pages as follows: http://www.oursite.com/location/ and http://www.oursite.com/location/?view=edit The first one should not be proxy passed or rewritten and should be served straight from that server. The second one should be proxypassed to http://staging.oursite.com/location/?view=edit While I can pass http://www.oursite.com/location/ quite easily, I can't work out how to let that one be served from the live server and serve only requests with a ? after the / from the staging server. I've tried proxypass /location/? http://staging.oursite.com/location/? and ReWriteRule /location/(\?.*) http://staging.oursite.com/location/$1 [redirect=permanent, last] but neither of these seem to work. Is what I am trying to do possible? TIA, -- - Wayne Pascoe E-mail: wayne.pascoe@realtime.co.uk Phone : +44 (0) 20 7544 4668 Mobile: +44 (0) 788 431 1675 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message