On Mon, Oct 18, 2010 at 8:37 PM, Ido Ran 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