incubator-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 18:49:20 GMT
If you have estimate of when it will be available it will be nice to hear.
Until then I'll just keep work the long path.

Thanks for the help,
Ido

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

> On Mon, Oct 18, 2010 at 8:37 PM, Ido Ran <ido.ran@gmail.com> wrote:
> > 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?
> >
> oh now I realize that the feature I told you is in trunk. In trunk
> vhost system has been improved to support paths.
>
> - benoƮt
>

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