I've installed couchdb on sme server 8 via epel.
I want to open port 5984 to both public and internal networks.
First I tried to do this via the server manager- port forwarding utility. I set both source and destination ports to 5984, and localhost as the destination host ip address. I tested the results with curl
http://localhost:5984 and remotely via http://<tld>:5984. This did not work (I received no response from the server) in either case.
Next, I looked at the example solution for setting up a tomcat server (
http://wiki.contribs.org/Tomcat), since it looked like the tomcat and couchdb installs are reasonably similar. Similar in that both place scripts in /etc/rc.d/init.d/, and copy them to /etc/rc.d/rc#.d/, etc.
I then tried running:
config set couchdb service access public status enabled TCPPort 5984
signal-event remoteaccess-update
There were no errors after doing this, and I can see the key is present in config, but I'm still not able to access couchdb remotely.
I'm wondering
1) if anyone can explain why the port forwarding solution won't work (I have verified my couchdb server is running on sme, and can curl
http://localhost:5984 and get a valid response)?
2) whether the port forwarding solution or config solution is preferable for a service running on sme?
Any help would be really appreciated.