CURL -X GET <url> is not working from bash script for checking Kibana installation with Nginx

Hi, I'm installing ELK stack on my Ubuntu VM using bash script I have made. I'm following this tutorial Install ELK on Ubuntu.

After installing Nginx from this tutorial, I'm trying to hit curl -X GET http://server-ip/status from my bash script which is giving me 502 Bad Gateway. However, when i'm doing manual installation or when i'm normally hitting it from terminal, it is giving me the result for that url.

Is this expected behaviour? or Does Nginx server takes time to reflect the changes?

I think that error comes from nginx, i think it depends on what the Nginx config does with the result from the status page in Kibana. If you curl directly localhost instead of server-ip, what do you get?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.