Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C5CC8DBBF for ; Tue, 19 Mar 2013 08:32:45 +0000 (UTC) Received: (qmail 5460 invoked by uid 500); 19 Mar 2013 08:32:43 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 5222 invoked by uid 500); 19 Mar 2013 08:32:35 -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 5175 invoked by uid 99); 19 Mar 2013 08:32:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Mar 2013 08:32:34 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of chrissphinx@gmail.com designates 209.85.128.173 as permitted sender) Received: from [209.85.128.173] (HELO mail-ve0-f173.google.com) (209.85.128.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Mar 2013 08:32:26 +0000 Received: by mail-ve0-f173.google.com with SMTP id oz10so160078veb.18 for ; Tue, 19 Mar 2013 01:32:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:content-type:content-transfer-encoding:subject :message-id:date:to:mime-version:x-mailer; bh=eYFb/pE6aFsus8ntwQnuifDoLpfrQAqE/YT7x+O45hY=; b=FiSbWFwFZ68GlvB1+kpRKdkB8sSJZmSfA4dCJrCX3qUCid2klsrztB6oVTj3/umHSh p1p8sD+IrwtOC6rsA5HgX5vfSfwQqSIVcZY4AFUzMcEd/pVWrm/benAYg9ACg+PzZ4Dh VJAVjWsGT801K99cru1kq/l8YbN0VRfmo1hIO65h+JDWm14x359qJPhdCxzLi47PxRwP ly7rEfYuGoI5oaMoXGqIfssbDLbjZoCEAuMVWDDRn/rRBg5nNR2JXiERcD0TPPCOSNIf HDvRVFJz5QeFiijZ87hEW9PazKuMeSwLRL3vrrihy74HCL3dtuWuqnEXXOjftQAiiG2F H+cA== X-Received: by 10.58.50.197 with SMTP id e5mr1161477veo.47.1363681925897; Tue, 19 Mar 2013 01:32:05 -0700 (PDT) Received: from [10.0.0.184] (173-167-225-138-ip-static.hfc.comcastbusiness.net. [173.167.225.138]) by mx.google.com with ESMTPS id qq6sm28068956vec.2.2013.03.19.01.32.04 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 19 Mar 2013 01:32:05 -0700 (PDT) From: Chris Sphinx Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Serving Simple HTML page to Public IP from CouchDB Message-Id: <675BF255-945C-4FB3-82EB-D96387FF2127@gmail.com> Date: Tue, 19 Mar 2013 04:32:03 -0400 To: user@couchdb.apache.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) X-Mailer: Apple Mail (2.1503) X-Virus-Checked: Checked by ClamAV on apache.org I have a CouchDB running on a RPi behind a router. I've seen countless = tutorials about "pretty urls", but no matter what I do I just cannot get = this to work for my public IP. All I want to do is be able to serve a = boring webpage to anyone that hits http://my.pub.lic.ip:5984 But the only way I was able to do this is by putting the public IP under = vhosts in the local.ini file. Doing so breaks the database and I can't = access it in any way until I remove the line from the local.ini file and = restart it. Trying to get at any part of the database results in: {"error":"not_found","reason":"Document is missing attachment"} Sure, I can set up something like 127.0.0.1couch to hook up to = http://couch:5984 on the RPi. I can even load it from another machine, = but I have to set my /etc/hosts on whatever machine I want to use to = include my.pub.lic.ipcouch. What if I want to allow anyone to = access the page without having to hack their /etc/hosts file? How am I = supposed to set this up? I get the feeling that the only way to do this is to run something like = ngix in front of the database with a reverse proxy, but I'm already = killing an ant with a sledgehammer and I feel that there is just = something I am overlooking here. Can anybody tell me what I'm doing = wrong? Or walk me through how to get CouchDB to serve up a webpage to a = public IP?=