# Can't start nginx with elasticsearch running

**URL:** <https://discuss.elastic.co/t/cant-start-nginx-with-elasticsearch-running/1533>\
**Category:** Elasticsearch\
**Created:** [May 29, 2015, 3:03am UTC](https://discuss.elastic.co/t/cant-start-nginx-with-elasticsearch-running/1533 "2015-05-29T03:03:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stp\_ra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stp_ra/32/42073_2.png) [@stp\_ra](https://discuss.elastic.co/u/stp_ra)\
**Post date:** [May 29, 2015, 3:03am UTC](https://discuss.elastic.co/t/cant-start-nginx-with-elasticsearch-running/1533/1 "2015-05-29T03:03:45Z")

</div>

We are running into the following issue when we try to run nginx after es is already up & running:

nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

If we start nginx THEN es then everything works. How do I resolve this? We can't always choose the order of services started given we use supervisor.

thx!

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [May 29, 2015, 6:50am UTC](https://discuss.elastic.co/t/cant-start-nginx-with-elasticsearch-running/1533/2 "2015-05-29T06:50:56Z")

</div>

Elasticsearch doesn't bind to port 80 with the default settings. Either it's something else hogging the port or you yourself have configured ES to use that port.

---

<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:** [July 6, 2017, 12:10am UTC](https://discuss.elastic.co/t/cant-start-nginx-with-elasticsearch-running/1533/3 "2017-07-06T00:10:55Z")

</div>


