4 messages in ru.sysoev.nginxRe: proxy_pass is double-encoding som...
FromSent OnAttachments
Joey KorkamesMay 21, 2008 6:47 pm 
mikeMay 21, 2008 7:01 pm 
Joey KorkamesMay 22, 2008 11:16 am 
Joey KorkamesMay 28, 2008 4:39 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: proxy_pass is double-encoding some pre-encoded uri'sActions...
From:Joey Korkames (joey@public.gmane.org)
Date:May 28, 2008 4:39:33 pm
List:ru.sysoev.nginx

I fixed this with the following rewrite:

location /apt-fetch-easynews { internal;

+rewrite (.*)%25(.*) $1%$2; +rewrite (.*)%7e(.*) $1~$2;

rewrite /apt-fetch-easynews/apt-cache/([^/]*)/([^/]*)(.*)
/linux/debian$3 break;

Mike, I have looked at the various apt proxy programs. They all are
Twisted/Perl/CGI daemons of some sort. All have pros and cons, but Nginx is much, much faster than all of them. The only thing after these stanzas in nginx I needed was a script to remove old
files from the cache.

Hooray for nginx! joey