I think this is kind of off topic but I'm trying to figure out the solution for hours without success maybe some of you could help me. My case, 2 ec2 instantes at Amazon, one with elasticsearch other runing php with symfony > foselasticasearch > elastica. I've configured php instance to connect in elasticsearch instance with its private IP. But it is throwing a HttpException: "Couldn't connect to host, Elasticsearch down?", the weird thing is that if I run over ssh in php instance the command:
$ curl -XGET '<private ip>:9200'
It returns the json status 200 e other stuff, tested the same with php:
<?php
$ch = curl_init("<private ip>:9200");
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
$data = curl_exec($ch);
print($data);
?>