Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 2380 invoked from network); 5 May 2009 12:18:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 May 2009 12:18:07 -0000 Received: (qmail 54172 invoked by uid 500); 5 May 2009 12:18:03 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 54125 invoked by uid 500); 5 May 2009 12:18:03 -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 54115 invoked by uid 99); 5 May 2009 12:18:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 May 2009 12:18:03 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=NORMAL_HTTP_TO_IP,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aw@ice-sa.com designates 212.85.38.228 as permitted sender) Received: from [212.85.38.228] (HELO tor.combios.es) (212.85.38.228) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 May 2009 12:17:52 +0000 Received: from localhost (localhost [127.0.0.1]) by tor.combios.es (Postfix) with ESMTP id A4373226076 for ; Tue, 5 May 2009 14:10:09 +0200 (CEST) Received: from tor.combios.es ([127.0.0.1]) by localhost (tor.combios.es [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Qc52zOUvJ0e3 for ; Tue, 5 May 2009 14:10:09 +0200 (CEST) Received: from [192.168.245.129] (p549EA907.dip0.t-ipconnect.de [84.158.169.7]) by tor.combios.es (Postfix) with ESMTPA id 560AA226071 for ; Tue, 5 May 2009 14:10:09 +0200 (CEST) Message-ID: <4A002D17.5070906@ice-sa.com> Date: Tue, 05 May 2009 14:12:07 +0200 From: =?ISO-8859-1?Q?Andr=E9_Warnier?= Reply-To: aw@ice-sa.com User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: users@httpd.apache.org References: <8079C77210AD154D986A30EAB13B42392DCD79FD62@r00-srv02.r.lan> <4A001FDE.5090605@ice-sa.com> <8079C77210AD154D986A30EAB13B42392DCD79FD69@r00-srv02.r.lan> In-Reply-To: <8079C77210AD154D986A30EAB13B42392DCD79FD69@r00-srv02.r.lan> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Mod-rewrite+Mod_proxy+Mod_cache Julien Gerhards wrote: > Hi Andr�, > > It doesn't made any change. Well yes it does. $0 was wrong, $1 is right, to capture what you wanted to capture. But I did not look further at the details. > I cant see anything in the rewritelog Then it means that this URL is not mtaching what you think it should. I'm no expert at mod_rewrite, but let's try again : RewriteRule ^/img=(.+)$ $1 [L,P] (I'm not really sure of the flags above..) Personally, I think your logic there is quite dangerous, because it basically allows miscreants to use your server as a proxy to anything and have you blamed for it, like if they use a URL like : http://192.168.100.188/img=http://www.cia.gov.us/some/state/secret/file.doc You should probably rather have them use a URL like http://yourserver.company.com/img=/mbv/news/00509/nano_1yen.jpg and then do something like RewriteRule ^/img=(.+)$ http://otherserver.com/$1 [L,P] so that /you/ control who is doing the bidouille, not them. > > For the Url : > http://192.168.100.188/img=http://files.macbidouille.com/mbv/news/00509/nano_1yen.jpg > > Accesslog : > 192.168.100.188 - - [05/May/2009:13:35:55 +0200] "GET /img=http://files.macbidouille.com/mbv/news/00509/nano_1yen.jpg HTTP/1.1" 400 684 "-" "Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.0.6) Gecko/2009020414 CentOS/3.0.6-1.el5.centos Firefox/3.0.6" > > [Tue May 05 13:36:08 2009] [debug] mod_proxy_http.c(1815): proxy: end body send > [Tue May 05 13:36:08 2009] [debug] proxy_util.c(2062): proxy: HTTP: has released connection for (*) > [Tue May 05 13:36:08 2009] [debug] mod_proxy_http.c(1726): proxy: start body send > [Tue May 05 13:36:08 2009] [debug] mod_cache.c(528): cache: /img=http://files.macbidouille.com/mbv/news/00509/nano_1yen.jpg not cached. Reason: Response status 400 > > Httpd is looping on itself : urlrewrite doesnt work! > > --------------------------------------------------------------------- > 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 > > --------------------------------------------------------------------- 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