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: <!DOCTYPE HTML PUBLIC "-//IETF//DTD
> HTML 2.0//EN">
> <html><head>
> <title>405 Method Not Allowed</title>
> </head><body>
> <h1>Method Not Allowed</h1>
> <p>The requested method PUT is not allowed for the URL /mahendradb/.</p>
> <hr>
> <address>Apache/2.2.14 (Ubuntu) Server at localhost Port 80</address>
> </body></html>
>
> 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: [email protected]
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