couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Chesneau <bchesn...@gmail.com>
Subject Re: Simple rewrite rule help
Date Wed, 27 Apr 2011 05:46:51 GMT
On Tuesday, April 26, 2011, Johannes J. Schmidt <schmidt@netzmerk.com> wrote:
> 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
>
>

There is but not in paths :)

benoit

Mime
View raw message