Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 98392 invoked from network); 16 Aug 2004 12:45:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 16 Aug 2004 12:45:35 -0000 Received: (qmail 4469 invoked by uid 500); 16 Aug 2004 12:44:50 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 4296 invoked by uid 500); 16 Aug 2004 12:44:48 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 4226 invoked by uid 99); 16 Aug 2004 12:44:47 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=WEIRD_PORT X-Spam-Check-By: apache.org Received: from [66.18.69.32] (HELO mail02.infosat.net) (66.18.69.32) by apache.org (qpsmtpd/0.27.1) with ESMTP; Mon, 16 Aug 2004 05:44:43 -0700 Received: from [66.18.82.67] (HELO [192.168.0.190]) by mail02.infosat.net (CommuniGate Pro SMTP 4.1.8) with ESMTP-TLS id 106183125; Mon, 16 Aug 2004 14:44:31 +0200 Message-ID: <4120AC2B.9070906@sharp.fm> Date: Mon, 16 Aug 2004 14:44:27 +0200 From: Graham Leggett User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040803 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Developers List CC: dev@httpd.apache.org Subject: Re: [proxy] New implementation ready for testing References: <411A45EA.5040504@apache.org> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Pier Fumagalli wrote: > What's wrong with: > > ProxyPassReverse / http://localhost:8888/ > ProxyPreserveHost On > RewriteMap hosts rnd:/opt/apache/conf/tables/hosts.map > RewriteRule "^/(.*)" "${hosts:live}/$1" [P,L] It isn't very elegant though. Someone who is well versed in mod_rewrite and regular expressions might find it really easy, but the rest of us mortals won't. :( Regards, Graham --