I have a 502 request error when I try to start a Local site

Bug Summary

502 request error.

Steps to reproduce

I can no longer connect to my local sites. After starting my local sites, when I click on “Open Site” or “WP Admin”, I get the error message: “502 Error Request”. I’ve tried refreshing the page, closing the local application, and restarting, but without success. I’ve also restarted my PC/server, but that didn’t help either. I’ve attached the log file and screenshots.

Environment Info

OS : windows 11 Pro

Site software : apache, PHP 8.3.29, MySQL 8.0.35

Local’s version : 10.0.0

Supporting info

Please provide your Local Log. See this Community Forum post for instructions on how to do so:

Include a

local-logs.zip (1.4 MB)

It looks like there is trouble connecting to the router in your logs @mapons. Typically, this is due to some native security blockers like Windows Defender or Antivirus settings. We have some details on common offenders in our guide here: Troubleshoot: Windows + Local - Local

If you’re still having trouble, could you check and see if switching to NGINX resolves the issue instead of using Apache? Or what about creating a new, blank site from scratch?

Thanks for your quick reponse.

I switched the Apache server to NGINX and that resolved the issue. (I previously try running Local as administrator in Windows without success.)