From dev-return-9036-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Sun Mar 07 05:21:53 2010 Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 10250 invoked from network); 7 Mar 2010 05:21:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Mar 2010 05:21:53 -0000 Received: (qmail 63401 invoked by uid 500); 7 Mar 2010 05:21:33 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 63230 invoked by uid 500); 7 Mar 2010 05:21:33 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 63221 invoked by uid 99); 7 Mar 2010 05:21:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Mar 2010 05:21:32 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mikeal.rogers@gmail.com designates 209.85.222.183 as permitted sender) Received: from [209.85.222.183] (HELO mail-pz0-f183.google.com) (209.85.222.183) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Mar 2010 05:21:24 +0000 Received: by pzk13 with SMTP id 13so1636270pzk.13 for ; Sat, 06 Mar 2010 21:21:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=YJloC9NeX3aaqu1X7B4Ye1Ezd12QGAooOK/jC7xRbIY=; b=p+nxcc3kuNyKkQNhWZUPGWLCZy8+CtyQVto0yB72TwvEMTXcfhlfXX8URMSodi7413 UotGv9zp0FjoHf/TVN2XKdbABFOA1kBbmI1eaVoB+YxoSs0yrIOm/U+uR5NSFKfUW6Bp vipB65U+NN/nbSDe7Kzu/VMG21M/MXT4X6180= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=M2/5DrSP+kiQTjfU5rvQnL8FTFELa1LyU8G0LOgBnAsmi3srbSA6k/TQxuq6E2Rg+H /HdP0dtuWsf9ZpKNC59ssghbsPzNLEeuaO+4k0rUC581NlrX4bz5E9HFBhQxBL1JV6VM Ot0o+34RhcpYTYX0cOrSf5uq5izFyuozD79V0= MIME-Version: 1.0 Received: by 10.115.101.3 with SMTP id d3mr2143908wam.129.1267939263567; Sat, 06 Mar 2010 21:21:03 -0800 (PST) Date: Sat, 6 Mar 2010 21:21:03 -0800 Message-ID: <30747dfa1003062121m29aa670ew15da9af2f0b82dba@mail.gmail.com> Subject: vhost + rewrite issues From: Mikeal Rogers To: dev@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org I'm using the new vhost + rewrite stuff and really loving it but I just hit a snag. I've got something like [vhost] domain.com /dbname/_design/app/_rewrite Since all calls to the vhost are sent to the rewriter I can't access the document API and I can't rebuild the document API in the rewrite rules because *all* rules are relative to that ddoc. I could get away with using _update for most things except I want to use attachments. Same domain security being what it is this is quite limiting. A proposed fix would be. Making "to"