CouchDB Proxy? Apache as a reverse proxy?

I have a VM (Ubuntu 10.04, Apache, CouchDB 1.0, ...) with an open IP address.

  • Is it possible to access CouchDB (mainly Futon) from a public IP address (i.e. 187.323.132.232:5984), and not from http: // localhost: 5984 ?
  • Or on my local machine configured the ssh tunnel ?
+4
source share
2 answers
  • Yes, go to Futon configuration and set bind_address in the http section to 0.0.0.0

    • In addition, you can also use SSH. The basic idea is to forward from your local machine to the remote CouchDB:

      ssh -L 5984: localhost: 5984 remoteuser @remotemachine

    Now you can access Futon through http: // localhost: 5984 / from the local machine.

Good luck

+2
source

You can also proxy through Apache:

  ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://localhost:5984/ ProxyPassReverse / http://localhost:5984/ 

You should also do this using the [P] flag in the RewriteRule, assuming mod_proxy is enabled.

+2
source

All Articles