Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 8005 invoked from network); 11 Feb 2008 20:52:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Feb 2008 20:52:35 -0000 Received: (qmail 76526 invoked by uid 500); 11 Feb 2008 20:52:20 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 76271 invoked by uid 500); 11 Feb 2008 20:52:19 -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 76260 invoked by uid 99); 11 Feb 2008 20:52:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2008 12:52:19 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jslive@gmail.com designates 209.85.134.189 as permitted sender) Received: from [209.85.134.189] (HELO mu-out-0910.google.com) (209.85.134.189) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2008 20:51:48 +0000 Received: by mu-out-0910.google.com with SMTP id w8so4227195mue.4 for ; Mon, 11 Feb 2008 12:51:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=daZdU16w79T/ByHizO1+LCimgRhCzn6CJunYYQlrcCY=; b=V4eNK+DW07I2Ul5Wsrl9cSsbCR2cQVruUzqxpWM0pnG5GdkZ89p1Bg90LaKRyit3y0BKrWP/pU+oH6wIw0w7e+Smaac+l2FcBmmtZetNpMBqfaKRayiXnyHzbCyNTE5rbeyBgoZ/I/Xwjc6dAuREHQSdyYqTCbChR7rRYvv9LEg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=U9SGlx/antcnGRJDnr3iSw09DIrw44BPRwcqr5/uyv6jERed0AvkcRFXBRL5KewFJKWEklFb7qIm2mwW5FscO0PpIJgj4WVS6zUHcYo5ZzcfUnnfJlDBzsiegUpiwvrKUiGqyXoI3/JlC+Z4whIwfNxMBFNQq33SeskxUin6quc= Received: by 10.65.225.7 with SMTP id c7mr19518942qbr.1.1202763112178; Mon, 11 Feb 2008 12:51:52 -0800 (PST) Received: by 10.65.158.1 with HTTP; Mon, 11 Feb 2008 12:51:52 -0800 (PST) Message-ID: Date: Mon, 11 Feb 2008 15:51:52 -0500 From: "Joshua Slive" Sender: jslive@gmail.com To: users@httpd.apache.org In-Reply-To: <47B0AC1E.6040904@physik.tu-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47B0AC1E.6040904@physik.tu-berlin.de> X-Google-Sender-Auth: 398594b0f6c72291 X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] mod_proxy question On Feb 11, 2008 3:12 PM, Ekkehard 'Ekki' Gehm wrote: > Hi everybody! > > Maybe someone can help me with this issue. We do have a strange setup of > different webservers here, and I want to have the main one proxying the > content of the otherone exept of a few dirs. > So my setup is: > > ... > ProxyPass /pcpool ! > ... > ProxyPass / http://www.physics.tu-berlin.de/ > > That all works fine. But when i add a line > ... > ProxyPass ^/~([^/]+)/?(.*) ! > ... > > It won't serve the userdirs locally. Could someone tell me how to leave > the public_html files untouched by the Proxy Module? I also tried it > with Rewrite Rules.... You can't use a regex in ProxyPass. You can do it with mod_rewrite or you can do it with ProxyPassMatch, assuming you are using 2.2.5 or later. Of course, the regex you have written is almost exactly equivalent to ProxyPass /~ ! So just using that would be the simplest solution. Remember that exceptions need to be written BEFORE the main ProxyPass directives. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org