开发者

Getting UUIDs in a CouchApp with active vhost

I am looking for the right way for loading new UUIDs or accessing the _session object in a couchapp behind a vhost.

I have written a couchapp and everything workes well with the 开发者_高级运维normal but ugly urls. So if i use http://example.cloudant.com/mydb/_design/myapp/index.html as address everything works as expected. If I use www.mycouchapp.com (mycouchapp.com CNAME -> example.cloudant.com/mydb/_design/myapp/_rewrite). I cannot access any ressource in the top level of couchdb like _session, _stats, or _uuid

Because of the security limitations I cannot make a rewrite-rule like "from":"_session", "to": "../../../_session" because more than "../../" are not allowed.

Is there a way or workaround for this problem?


you should use CouchDB's URL Rewriting and Vhost possibilities:

http://blog.couchone.com/post/443028592/whats-new-in-apache-couchdb-0-11-part-one-nice-urls

HTH

Cheers

Andy

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜