CouchDB的代理? Apache作为反向代理?
问题描述:
我有VM(Ubuntu的10.04,阿帕奇,CouchDB的1.0,...)与公网IP地址。
I have VM (Ubuntu 10.04, Apache, CouchDB 1.0, ...) with public ip address.
- 是否有可能为公共IP地址访问CouchDB的(主要是蒲团)(即187.323.132.232:5984),而不是从的的http://本地主机:5984
- 或者我的本地机器上的设置了SSH隧道?
- Is it possible to access CouchDB (mainly Futon) from public ip address (i.e. 187.323.132.232:5984), not from http://localhost:5984?
- Or on my local machine, set up an ssh tunnel?
答
您可以通过Apache也代理:
You can also proxy via Apache:
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://localhost:5984/
ProxyPassReverse / http://localhost:5984/
您也应该能够在一个重写规则的 [P]
标志来做到这一点,presuming mod_proxy的已启用。
You should also be able to do this with the [P]
flag on a RewriteRule, presuming mod_proxy has been enabled.