Read your ticket.
Having the exact same problem!
Unfortunately the patch doesn't work on the trunk version. A lot of
filenames have changed...
Which revision are you running? I could just go back to that and apply
your patch until the trunk has been fixed.
Thanks!
S
On Apr 23, 2008, at 3:27 PM, Benoit Chesneau wrote:
On Wed, Apr 23, 2008 at 8:22 PM, Guby <[EMAIL PROTECTED]> wrote:
I access it through nginx, but this worked perfectly until I updated
couchdb. The nginx config looks like this:
upstream db {
server 127.0.0.1:5984;
}
server {
listen 80;
server_name my_domain.com;
location / {
proxy_pass http://db;
auth_basic "Restricted area";
auth_basic_user_file /path_to_password_file/.htpasswd;
break;
}
}
Here are the headers from Firefox:
Response Headers
Transfer-Encoding chunked
Date Wed, 23 Apr 2008 16:00:36 GMT
Content-Type text/plain;charset=utf-8
Server nginx/0.5.26
Content-Encoding gzip
Request Headers
Host db.kle.io
User-Agent Mozilla/5.0 (Macintosh; U; Intel Mac OS X; nb-NO;
rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
Accept
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/
plain;q=0.8,image/png,*/*;q=0.5
Accept-Language nb,no;q=0.8,nn;q=0.6,en-us;q=0.4,en;q=0.2
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 300
Connection keep-alive
Authorization Basic c2ViYXN0aWFuOnNlYmJhODU=
Best regards
Sebastian
ok. So this is a known problem, nginx converse with couchdb in http
1.0 like most of proxies. So you get a non parsed http chunks.
I made a patch for that (though non tested with latest trunk) :
You can get it here :
https://issues.apache.org/jira/browse/COUCHDB-40
don't hesitate to comment this issue :)
Benoît
--
- benoît