Hi, you could configure your apache to proxy your couch in the same virtual host as your script runs. Markus > Hi, > > 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: HTML 2.0//EN"> > > 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
> > > How can I access CouchDB from port 80? > -- Markus Wolf Entwicklung FaceValue Media GmbH Max-Brauer-Allee 34 22765 Hamburg Fon: +49 (0) 40 1888899-73 Fax: +49 (0) 40 1888899-873 E-Mail: m.wolf@hotornot.de http://www.HOTorNOT.de - Europe's #1 rating site Sitz der Gesellschaft: Breslauer Strasse 39 65830 Kriftel Amtsgericht Frankfurt/M HRB 54159, UST-ID: DE 223646709 Geschäftsführung: Frank Böhmer