incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johannes J. Schmidt" <schm...@netzmerk.com>
Subject Re: Simple rewrite rule help
Date Tue, 26 Apr 2011 20:23:23 GMT
Am Dienstag, den 26.04.2011, 14:00 -0600 schrieb Ryan Ramage:
> Great, and can it be done with one generic rule, with a variable?
> 
> something like:
> hostname.com:/${db} = ${db}/_design/app/_rewrite

From my knowing there is no variable substitution inside vhosts
definitions.

I am using kind of a route document with the rule
 {
   "from": "/:db",
   "to": "../../../:db/_design/app/_rewrite"
 }
and a vhost definition like
  hostname.com = master/_design/router/_rewrite
to achieve that.

g jo


Mime
View raw message