couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabio Batalha C Santos Santos <fabio...@yahoo.com.br>
Subject couch.js in different port
Date Thu, 14 Oct 2010 21:30:49 GMT
I created a javascript, to access CouchDB. It is as follows:

var dbname = "mahendradb";
$.couch.db(dbname).create({
error:function(status,id,reason) { alert(status+" reason:
"+reason);},
success:function(resp) { alert (resp); }
});


This script is running on port 80. CouchDB is on port 5984.  So, obviously I 
will get an error. The error is as follows.

Error: uncaught exception: Invalid JSON: 
405 Method Not Allowed
Method Not Allowed
The requested method PUT is not allowed for the URL /mahendradb/.
Apache/2.2.14 (Ubuntu) Server at localhost Port 80


The questions is:
How can I access CouchDB from port 80?


Thanks,
Fabio Batalha



      

Mime
View raw message