English 中文(简体)
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





相关问题
couchdb for /really/ distributed replica

let s say i want to implement a distributed database (each node being the replica of the others); i hear that cdb is able to easily sync between two nodes and at least support some form of conflict ...

CouchDB View, Map, Index, and Sequence

I think read somewhere that when a View is requested the "map" is only run across documents that have been added since the last time it was requested? How is this determined? I thought I saw something ...

representing a many-to-many relationship in couchDB

Let s say I m writing a log analysis application. The main domain object would be a LogEntry. In addition. users of the application define a LogTopic which describes what log entries they are ...

couchDB , python and authentication

I have installed couchDB v 0.10.0, and am attempting to talk to it via python from Couch class downloaded from couchDB wiki. Problem is: Create database mydb : { error : unauthorized , reason : ...

Temp View Caching?

I m using CouchDB with a home-grown C# interface library. The most common method of accessing CouchDB with this library results in a temp view being created. I ve optimized the library so that it uses ...

热门标签