I have configured Elasticsearch to bind to localhost:9200
on the DB server, then allow my app server to connect to it with ufw
. However, when I try to curl
the DB server from my app server, I am unable to connect to it.
My workaround at the moment is to us nginx
to listen to 9201 and send traffic to 9200. I am then able to run curl dbserver:9201
.
I would like to setup multiple nodes, however, and I can’t figure out how I can get around this problem.