couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ido Ran <ido....@gmail.com>
Subject Re: VHosts and Rewrite rules
Date Mon, 18 Oct 2010 17:20:35 GMT
Is that valid vhosts? */app/todo

It mean that http://localhost:5984/app/todos will be rewrite to
todos/_design/app/_rewrite?

I try to add todos.com to /etc/hosts and add
todos.com= todos/_design/app/_rewrite

but that did not work either.

How can I debug this to know what is wrong?

Ido

On Mon, Oct 18, 2010 at 7:01 PM, Benoit Chesneau <bchesneau@gmail.com>wrote:

> On Mon, Oct 18, 2010 at 6:48 PM, Ido Ran <ido.ran@gmail.com> wrote:
>
> > I've add vhosts section to my local.ini file and there I'm not sure how
> to
> > redirect http://localhost:5984/todos/* to
> > http://localhost:5984/todos/_design/app/_rewrite
> >
>
> You can't unless you don't want access to the db. Better to use 2 names
>
>
> [vhosts]
> */app/todo = todos/_design/app/_rewrite
>
> for ex.
>
>
> - benoƮt
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message