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 <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx