couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Chesneau <bchesn...@gmail.com>
Subject problem with replication + nginx proxy
Date Fri, 12 Jun 2009 10:03:41 GMT
Hi all,

I'm trying to replicate a source database behind a nginx proxy. All
docs seem replicated in target db but replication never ending.

Configuration of nginx is :
 server {
        listen 88.191.73.9:80;
        server_name nymphormation.org www.nymphormation.org;

        location / {
                proxy_pass http://127.0.0.1:5985;
                proxy_redirect default;
                proxy_set_header X-Orig-Host '$host:$server_port';

                if ($request_uri ~* "^/$") {
                        rewrite ^/$
http://nymphormation.org/n/_design/nymphormation/_list/links/news?limit=11&descending=true
permanent;
                }
        }

        location ~ ^/robots.txt {
            root /home/nymphormation/www;
        }

   }

To reproduce I just do a simple replication of
http://nymphormation.org/n to a local db. Could the problem appear due
to rewriting of / ?



- benoƮt

Mime
View raw message