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 EC88C1201 for ; Tue, 26 Apr 2011 19:48:45 +0000 (UTC) Received: (qmail 17713 invoked by uid 500); 26 Apr 2011 19:48:44 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 17668 invoked by uid 500); 26 Apr 2011 19:48:44 -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 17660 invoked by uid 99); 26 Apr 2011 19:48:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Apr 2011 19:48:44 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ryan.ramage@gmail.com designates 74.125.82.54 as permitted sender) Received: from [74.125.82.54] (HELO mail-ww0-f54.google.com) (74.125.82.54) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Apr 2011 19:48:37 +0000 Received: by wwd20 with SMTP id 20so1015668wwd.23 for ; Tue, 26 Apr 2011 12:48:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=MamZsvv8gTsF+qdb4q5/6MRkUdbll+woMOI8s2k6C0s=; b=H4RjCMhv0WIviGzHCvp4S4HWl9RIZARuTgVVRp89FL9J8y+32GJ5Mm/JrCVCpTpTT/ I2AcdNQip7v/T86KvyQNjHmgfcrK9yZ0hF7mNNxRn8iWCGKLELHD2KslpShu1cOpZK8j 4D0Fwq2v4q37RHAXiOxSkeQNDf5R7nXoEKQFw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=GcoagsZF9qJdv/GJpSPbO8a/PQ/s0ir6gQZLceqoOAjz1CgYfd+witBSgXsLLMPOBV RzCP4wNFDyblp3Hj/VZOjj54oEVu8ZxaZQk9AVTCmSlmC/JYBXgL6qThEMyeDI9lGhIb ePUY4Hl3AvCgNsaEq9UiX9FR0mOW7Te33OyRs= MIME-Version: 1.0 Received: by 10.227.60.194 with SMTP id q2mr1210107wbh.63.1303847296332; Tue, 26 Apr 2011 12:48:16 -0700 (PDT) Received: by 10.227.71.137 with HTTP; Tue, 26 Apr 2011 12:48:16 -0700 (PDT) Date: Tue, 26 Apr 2011 13:48:16 -0600 Message-ID: Subject: Simple rewrite rule help From: Ryan Ramage To: user Content-Type: text/plain; charset=ISO-8859-1 Hello all, Can I define rule(s) that looks like this? http://hostname.com/db1 -> /db1/_design/app/_rewrite http://hostname.com/db2 -> /db2/_design/app/_rewrite http://hostname.com/db3 -> /db3/_design/app/_rewrite ... and so on or, if that messes up accessing the docs/endpoints, maybe http://hostname.com/_db1 -> /db1/_design/app/_rewrite http://hostname.com/_db2 -> /db2/_design/app/_rewrite http://hostname.com/_db3 -> /db3/_design/app/_rewrite Notice, the hostname is the same, so I can't use a vhost rule. Also, I would like to have it on a design doc (so it replicates), or only have to perform the config once per server. Is that possible? ( using couch 1.1 or greater if that helps)