Hi there,

I'm trying to proxy CouchDB over Apache so that I can use the Apache access controls (and maybe caching). Basically I'm testing the "you can do whatever you like with the protocol since it's HTTP" claim :)

I added these 2 lines to my Apache 2.2.9's httpd.conf:
ProxyPass / http://localhost:5984/
ProxyPassReverse / http://localhost:5984/

If I run the tests from http://localhost:5984/_utils, they run fine, but if I connect to http://localhost/_utils, some of them fail. (latest SVN trunk btw)

Here's the error for the reduce_false test:

{"error":"unknown","reason":"<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>404 Not Found</title>\n</head><body> \n<h1>Not Found</h1>\n<p>The requested URL /test_suite_db/_design/test was not found on this server.</p>\n</body></html>\n","line": 331,"expressionBeginOffset":11155,"expressionEndOffset": 11167,"sourceId":670957024,"sourceURL":"http://localhost/_utils/script/couch.js?0.9.0 "}

I can't figure out if this is just the test expecting the word-for- word error reply that CouchDB would send or if something isn't proxied properly by Apache.

I couldn't find a proxy-setup on the Wiki so here's my help plea on the mailing list.

Cheers,

Wout.

Reply via email to