incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Ramage <ryan.ram...@gmail.com>
Subject Re: Simple rewrite rule help
Date Tue, 26 Apr 2011 20:26:27 GMT
I think I just noticed in JIRA there is discussion to jail (Or
prevent) those kind of rewrites.

https://issues.apache.org/jira/browse/COUCHDB-759



On Tue, Apr 26, 2011 at 2:23 PM, 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
>
>

Mime
View raw message