# 502 request error and 502 bad gateway

**URL:** <https://community.localwp.com/t/502-request-error-and-502-bad-gateway/44859>\
**Category:** Support\
**Created:** [October 4, 2024, 3:59pm UTC](https://community.localwp.com/t/502-request-error-and-502-bad-gateway/44859 "2024-10-04T15:59:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vish](https://avatars.discourse-cdn.com/v4/letter/v/8e8cbc/32.png) [@vish](https://community.localwp.com/u/vish)\
**Post date:** [October 4, 2024, 3:59pm UTC](https://community.localwp.com/t/502-request-error-and-502-bad-gateway/44859/1 "2024-10-04T15:59:10Z")

</div>

### What issue or error are you experiencing?

when i opened my site its showing 502 request error and sometimes its shows 405 Not Allowed and 502 bad gateway please help me to get my site back

* * *

### What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

 ![Screenshot 2024-10-04 204810](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/5/5/55fdd0c5b80f0be4b7b14b464cf9fa4967c94c87.png)

* * *

### System Details

- **Local Version:**

- Version 9.1.0+6719

- **Operating System (OS) and OS version:**

- windows 11

- 22H2

* * *

### Local Logs

Attach your Local Logs here ([Help Doc - Retrieving Local’s Log](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/))  
[local-lightning.log](https://community.localwp.com/uploads/short-url/gcOxY2Yvd7G24JfAb5LctIt144s.log) (257.6 KB)

* * *

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [October 4, 2024, 4:31pm UTC](https://community.localwp.com/t/502-request-error-and-502-bad-gateway/44859/2 "2024-10-04T16:31:21Z")

</div>

Hey @vish

It looks like it’s trying to go to the `.com` version of the domain. Did you change your Local site to match the domain of a live site? Usually Local sites will end in something like sitename.local or localhost:10058 depending on your Router Mode.

---

<div class="post-metadata">

**Author:** ![vish](https://avatars.discourse-cdn.com/v4/letter/v/8e8cbc/32.png) [@vish](https://community.localwp.com/u/vish)\
**Post date:** [October 4, 2024, 4:43pm UTC](https://community.localwp.com/t/502-request-error-and-502-bad-gateway/44859/3 "2024-10-04T16:43:29Z")

</div>

actually i changed my domain name after getting this error, now i tried .local domain too but still its not working

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [October 4, 2024, 4:49pm UTC](https://community.localwp.com/t/502-request-error-and-502-bad-gateway/44859/4 "2024-10-04T16:49:02Z")

</div>

Try changing your Router Mode to Localhost, and then stop and restart the site.

Preferences\>Advanced\>Router Mode

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [January 2, 2025, 4:49pm UTC](https://community.localwp.com/t/502-request-error-and-502-bad-gateway/44859/5 "2025-01-02T16:49:58Z")

</div>

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