From user-return-15191-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Fri Mar 04 08:27:22 2011 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 84081 invoked from network); 4 Mar 2011 08:27:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Mar 2011 08:27:22 -0000 Received: (qmail 2784 invoked by uid 500); 4 Mar 2011 08:27:21 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 2747 invoked by uid 500); 4 Mar 2011 08:27:20 -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 2738 invoked by uid 99); 4 Mar 2011 08:27:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Mar 2011 08:27:20 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bchesneau@gmail.com designates 209.85.210.180 as permitted sender) Received: from [209.85.210.180] (HELO mail-iy0-f180.google.com) (209.85.210.180) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Mar 2011 08:27:14 +0000 Received: by iyf40 with SMTP id 40so2159091iyf.11 for ; Fri, 04 Mar 2011 00:26:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=G3j0gpLZHS7KXwcLHcju9GUUkNsI/lUhryNj3sFi+Pc=; b=MU2ngWpqhuvpeEUbtgU/pQbdnLMegW72ClgtnUHK89Gr6o/Uqg7o4Wsg6VJxg/ieRH riv+PJJitNNLC1tHo3o/0EKNe3itasPfsBlHKT1iheMjsCioMvSAFSfqWgnOhAWkePaA K0I96I9J9wgfaTZKm7tm1jXii88m0qKQfMf10= 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:content-transfer-encoding; b=RfvZftogf9wAlAEFYsGmuK5ma5/ZfuIEzH76p+oNMV2qjAIAHJvvSzazP457fpfJWw YYkO8D/DbrsNgeoK6dlvLDG0n6Id5Kr6x2DMeBJuJB4lE0dNy6a7flNL1Y1xQJ/08jo3 E7b9ZrC0ciZ9WehaESOnlwdJz899OsgZ/LvhQ= MIME-Version: 1.0 Received: by 10.43.65.132 with SMTP id xm4mr252399icb.424.1299227211806; Fri, 04 Mar 2011 00:26:51 -0800 (PST) Received: by 10.231.12.11 with HTTP; Fri, 4 Mar 2011 00:26:51 -0800 (PST) In-Reply-To: References: Date: Fri, 4 Mar 2011 09:26:51 +0100 Message-ID: Subject: Re: Rewrite urls and views issue From: Benoit Chesneau To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Fri, Mar 4, 2011 at 9:06 AM, Dmitry Stropaloff wrot= e: > Hi, > > I'm trying to rewrite urls for my views (application will use CouchDB > virtual host): > > "from": "/views/*", > "to": "_view/*", > "method": "*", > "query": {} > > So, when I try to access db/_design/db/_rewrite/views/ > in log there is such info: rewrite to "/db/_design/db/_view" > > As expected, I get=A0{"error":"method_not_allowed","reason":"Only > GET,POST,HEAD allowed"} > > But if I try to reach some view function - db/_design/db/_rewrite/views/a= ll > in log I get a very strange (for me) message: rewrite to > "/db/views/all?doc=3Dviews&attachment=3Dall" Never saw that. what exact url are you calling and the rewrite rules ? - beno=EEt