On Sun, Nov 15, 2015 at 2:01 AM, Johs Ensby <j...@b2w.com> wrote:

> Setting up servers with Couch as the web server, I have used firewall 
> prerouting to redirect everything port 80 to couch
> Anyone with a better approach to this than this?
>
> $ sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to 5984

This might not be the best place to ask, but what's the problem (or
cost) of using iptables to get CouchDB to respond on port 80?
I've been using that for years with no problems, but I don't have that
much traffic either.
I've also used nginx for mostly static sites, when CouchDB made a good
backend to receive contact messages. In that case, CouchDB was only
available at 5984 but proxied by nginx.
Both options were simple to implement.

-- 
Robin

Reply via email to