From user-return-9756-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Mon Apr 05 15:45:44 2010 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 23332 invoked from network); 5 Apr 2010 15:45:44 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Apr 2010 15:45:44 -0000 Received: (qmail 78488 invoked by uid 500); 5 Apr 2010 15:45:42 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 78261 invoked by uid 500); 5 Apr 2010 15:45:42 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 78245 invoked by uid 99); 5 Apr 2010 15:45:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Apr 2010 15:45:41 +0000 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=AWL,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of audrey.lee.is.me@gmail.com designates 209.85.160.52 as permitted sender) Received: from [209.85.160.52] (HELO mail-pw0-f52.google.com) (209.85.160.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Apr 2010 15:45:35 +0000 Received: by pwi1 with SMTP id 1so2866748pwi.11 for ; Mon, 05 Apr 2010 08:45:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type; bh=w9tWDcN7NHoya1n4TkYtTXV6i6C1TEbCcbc07vv7JbI=; b=GdyZDQG/amJHizyvV6Vj66pLQBIbUTl+tYt20OTUgSYNWSrLeIa/9L3fvR/uMlLF0u A+bLC8Iwer7tPFNplEGGEAmMmXWZY0DvwTijek+hnBydhXEkue6pFudHOf9Xxr07Duyt ag/fMdKb+TGMx4KsXiMFiSNeL/mUeQjpThRbY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=elQQFDqZgoVJwbcHhIW/B8LZcoIQAq6PNd2w1dt2WsbrlYO/uT29DrWOXc5UFN9V2O azXvT4s5uLb5XaEvEuyOVxIGUAgblECOcl+drTtZh+e+cK9AFL06Ih7R7CxV70qtYPse kyyLpaejKloaVOca30kY2LxJu9gB1dcVVz9og= MIME-Version: 1.0 Received: by 10.114.58.15 with HTTP; Mon, 5 Apr 2010 08:45:15 -0700 (PDT) In-Reply-To: References: Date: Mon, 5 Apr 2010 08:45:15 -0700 Received: by 10.114.139.10 with SMTP id m10mr4640828wad.128.1270482315075; Mon, 05 Apr 2010 08:45:15 -0700 (PDT) Message-ID: Subject: Re: How I "glue" together Rails and couchDB ? From: Audrey Lee To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Here is some configuration syntax for nginx I got from the nginx mail list: server { server_name localhost; listen 8080; location /rails { proxy_pass http://localhost:3000; include proxy.conf; # other proxy settings - see docs } location / { proxy_pass http://localhost:5984; include proxy.conf; # other proxy settings - see docs } } On 4/4/10, Audrey Lee wrote: > Hello couchDB People, > > Is it possible to easily glue together couchDB and Rails? > > I have a rails server running here: > http://localhost:3000/rails/ > > And I have a couchDB server running here: > http://localhost:5984/ > > I'd like to configure couchDB (or Rails) so that I have a server which > listens on 8080. > > I want any request directed at: > http://localhost:8080/rails/ > to be forwarded to > http://localhost:3000/rails/ > And I want all other requests to be forwarded to > http://localhost:5984/ > > Or perhaps I could configure couchDB so that any request directed at: > http://localhost:5984/rails/ > is forwarded to > http://localhost:3000/rails/ > > Have any of you done something like this? >