couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wolfgang Egger <be...@wolfgang-egger.de>
Subject _rewrite, vhots
Date Sat, 25 Sep 2010 13:13:23 GMT
Servus,

I do not get this url-rewriting running as expected.

What works is 
http://man.local/
as a vhost pointing to
http://loacalhost/man/_design/man/_rewrite

together with
"rewrites":[
{
      "from": "/manual",
      "to": "_view/manuals"
}
]

together with the correct line in /etc/hosts

http://man.local/manual

shows the expected view


But I have problems with the second rewrite:
{
  "from": "/shelf",
  "to": "/index.html"
}

http://man.local/shelf/
serves the index.html, but all "links" within (includes, css etc) could not be
found.

http://localhost/man/_design/man/ is a couchapp

What is the problem that the "internal links" could not be resolved and how to
solve that problem


Mime
View raw message