couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Ramage <ryan.ram...@gmail.com>
Subject Simple rewrite rule help
Date Tue, 26 Apr 2011 19:48:16 GMT
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)

Mime
View raw message