Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

I looks like it should be fairly easy. Take a look at: http://serverfault.com/questions/135770/rewrite-url-before-passing-to-proxy-lighttpd.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.