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 23AD010F79 for ; Tue, 12 Nov 2013 10:32:36 +0000 (UTC) Received: (qmail 61882 invoked by uid 500); 12 Nov 2013 10:27:54 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 61750 invoked by uid 500); 12 Nov 2013 10:27:45 -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 61644 invoked by uid 99); 12 Nov 2013 10:27:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Nov 2013 10:27:37 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alex.barbalex@gmail.com designates 209.85.215.180 as permitted sender) Received: from [209.85.215.180] (HELO mail-ea0-f180.google.com) (209.85.215.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Nov 2013 10:27:33 +0000 Received: by mail-ea0-f180.google.com with SMTP id b11so3397747eae.39 for ; Tue, 12 Nov 2013 02:27:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=t0Rw4+ukHMdwqL7o9jsAXmG9kqlgC1s2bwjTypc/x0I=; b=mvCGWyT9aLw22MDiggHsRaIuASAh6KVh8fzJYEHZdrmB8k3P0g0s4OQj8RUQL0gju6 /bTvZb/0ofYwDrm1hpG4dfphZDjH5ZLsBYzsYMwZdJOeX992TGalhuJWNCqcCMUIpcyC avP+QyGk8htvMzHeUMbK51cuEaxl9hgQaiqxEsoVb4j/Cq84Y86ZadP01LADg0AS5tG8 MT9YjzPOdhMpfohS+K4fd0CBkHUVEsnpc35rM3UaloEJ8DZlu5nEaHuyIoqtuo7MsDJj 8ieoW60tNDaG2A6vHyAC113WGTy9JezaK/gamVU2VF8msl1wAxwLrvnSg+tUdyPcXIXz Ui0g== MIME-Version: 1.0 X-Received: by 10.14.241.74 with SMTP id f50mr41631907eer.29.1384252032489; Tue, 12 Nov 2013 02:27:12 -0800 (PST) Sender: alex.barbalex@gmail.com Received: by 10.223.170.72 with HTTP; Tue, 12 Nov 2013 02:27:12 -0800 (PST) In-Reply-To: <87D24098-8BC5-4A4D-84D1-597F5B7919FC@sri.com> References: <87D24098-8BC5-4A4D-84D1-597F5B7919FC@sri.com> Date: Tue, 12 Nov 2013 11:27:12 +0100 X-Google-Sender-Auth: VrODPIyH0RoBNPgmzkDA9ejZDGo Message-ID: Subject: Re: rewrites not working From: Alexander Gabriel To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=001a1132e8daad1efe04eaf84a5c X-Virus-Checked: Checked by ClamAV on apache.org --001a1132e8daad1efe04eaf84a5c Content-Type: text/plain; charset=UTF-8 Hi Jim I had some trouble configuring my local.ini file. Setting [httpd] port = 80 doesn't work because I get a "Connection refused" answer when connecting with curl. The only way I got it working was: [httpd] port = 5984 bind_address = 0.0.0.0 then redirecting form 5984 to 80: "iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 5984" Is this the reason form my trouble with rewrites? The vhost I set was: arteigenschaften.ch:5984 = /artendb/_design/artendb/_rewrite Alex 2013/11/11 Jim Klo > Couple of issues I see, answered inline below. > > Jim Klo > Senior Software Engineer > SRI International > t: @nsomnac > > On Nov 10, 2013, at 8:38 PM, "Alexander Gabriel" alex@barbalex.ch>> wrote: > > I call: > "http://arteigenschaften.ch/artendb/_design/artendb/index.html" because > that is where the web-app appears. And I would want it to show as " > http://arteigenschaften.ch/index.html< > http://arteigenschaften.ch/artendb/_design/artendb/index.html> > > Is your VHOST mapping right? > > I saw you had: > arteigenschaften.ch:5984=/db > name/_design/docname/_rewrite > > If you want it to answer on port 80, I think you either need to omit the > port or specify 80 > > arteigenschaften.ch=/db > name/_design/docname/_rewrite > > You should be able to test your rewrites by just going to: > http://localhost:5984/artendb/_design/artendb/_rewrite > > It that works, then your problem is with your VHOST config (or reverse > proxy depending upon how things are configured in your environment). If > you're doing this remotely and can't access couch directly, I recommend > doing a ssh port forward so you can test the redirect without VHOST mucking > things up. > > - JK > > --001a1132e8daad1efe04eaf84a5c--