I have a sub-directory on my web server (lighttpd) that I want to point at a CouchDB instance running on the same machine. I tried using mod_proxy but it sends along the whole request, like a proxy should, I know!
So:
// What happens:
Lighttpd: http://localhost/couchdb/some_request
|
V
CouchDB: http://localhost:5984/couchdb/some_request
// What I want to happen:
Lighttpd: http://localhost/couchdb/some_request
|
V
CouchDB: http://localhost:5984/some_request
Is there any way to make this setup work?
From serverfault
indieinvader
-
I looks like it should be fairly easy. Take a look at: http://serverfault.com/questions/135770/rewrite-url-before-passing-to-proxy-lighttpd.
From Erik
0 comments:
Post a Comment