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:31:28 GMT
I forgot to note that you must set
  secure_rewrites = false
(under section httpd) in order to allow cross-db rewriting.

g jo
Am Dienstag, den 26.04.2011, 14:26 -0600 schrieb Ryan Ramage:
> 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
> >
> >

-- 
Netzmerk GbR
Johannes J. Schmidt

http://netzmerk.com
01525 378 65 21

Am Vierstückenpfuhl 3a
14167 Berlin

Mime
View raw message