# 502 Bad Gateway after Ghost restart

**URL:** <https://forum.ghost.org/t/502-bad-gateway-after-ghost-restart/28611>\
**Category:** Self-hosting\
**Created:** [February 18, 2022, 2:01pm UTC](https://forum.ghost.org/t/502-bad-gateway-after-ghost-restart/28611 "2022-02-18T14:01:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrii](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/andrii/32/11786_2.png) [@andrii](https://forum.ghost.org/u/andrii)\
**Post date:** [February 18, 2022, 2:01pm UTC](https://forum.ghost.org/t/502-bad-gateway-after-ghost-restart/28611/1 "2022-02-18T14:01:09Z")

</div>

Hello,

My website is down - [mrhack.io](https://mrhack.io)  
I tried ghost restart and then it went down…  
It says that site is running.  
Ghost doctor also is ok.

 ![Screen Shot 2022-02-18 at 3.00.49 PM](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/f/b/fb482f879dc83d99c992f8883c5685d8d63610ac.png)

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [February 19, 2022, 9:58am UTC](https://forum.ghost.org/t/502-bad-gateway-after-ghost-restart/28611/2 "2022-02-19T09:58:32Z")

</div>

It looks like you fixed it since your site is available. If you still have an issue check your network and browser.

---

<div class="post-metadata">

**Author:** ![andrii](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/andrii/32/11786_2.png) [@andrii](https://forum.ghost.org/u/andrii)\
**Post date:** [February 19, 2022, 10:13am UTC](https://forum.ghost.org/t/502-bad-gateway-after-ghost-restart/28611/3 "2022-02-19T10:13:04Z")

</div>

Yep I fixed it…  
Issue was with port number in .conf files. In files it was 2368, however it should be 2369.

I changed it, restarted nginx and then site was back up.
