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