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 Wed, 27 Apr 2011 06:19:16 GMT
Am Mittwoch, den 27.04.2011, 07:46 +0200 schrieb Benoit Chesneau:
> 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
Could you point me to some documentation about that feature?

g jo

Mime
View raw message