OK, there is some progress.
I've set this vhost:
localhost:5984 = /todos/_design/app/_rewrite
and it is working all right.
>From what I understand, because vhosts work in HTTP level and because they
search for HOST value in the header they are not affected by the path
requested. So the only values I can put in the left-hand side are host name
and port.
So now every request to http://localhost:5984 effectively goes to
http://localhost:5984/todos/_design_app/_rewrite which is a good thing.
New quesitons:
1. How can I support multiple databases in this way?
2. How can I make request to http://localhost:5984 go to
http://localhost:5984/todos?
Thank you again,
Ido
On Mon, Oct 18, 2010 at 7:30 PM, Benoit Chesneau <bchesneau@gmail.com>wrote:
> On Mon, Oct 18, 2010 at 7:20 PM, Ido Ran <ido.ran@gmail.com> wrote:
> > Is that valid vhosts? */app/todo
> >
> * mean all coming hosts.
>
> > 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
> >
>
> /todos/...
>
> - benoit
>
|