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

**URL:** <https://discuss.elastic.co/t/curl-x-get-url-is-not-working-from-bash-script-for-checking-kibana-installation-with-nginx/228041>\
**Category:** Kibana\
**Created:** [April 15, 2020, 6:53am UTC](https://discuss.elastic.co/t/curl-x-get-url-is-not-working-from-bash-script-for-checking-kibana-installation-with-nginx/228041 "2020-04-15T06:53:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![manojkrishna561994](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@manojkrishna561994](https://discuss.elastic.co/u/manojkrishna561994)\
**Post date:** [April 15, 2020, 6:53am UTC](https://discuss.elastic.co/t/curl-x-get-url-is-not-working-from-bash-script-for-checking-kibana-installation-with-nginx/228041/1 "2020-04-15T06:53:42Z")

</div>

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](https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elastic-stack-on-ubuntu-18-04).

After installing Nginx from this tutorial, I'm trying to hit curl -X GET [http://server-ip/status](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?

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [April 15, 2020, 2:19pm UTC](https://discuss.elastic.co/t/curl-x-get-url-is-not-working-from-bash-script-for-checking-kibana-installation-with-nginx/228041/2 "2020-04-15T14:19:44Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 13, 2020, 2:19pm UTC](https://discuss.elastic.co/t/curl-x-get-url-is-not-working-from-bash-script-for-checking-kibana-installation-with-nginx/228041/3 "2020-05-13T14:19:54Z")

</div>

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