Browsers cannot connect to live websites, timeout, or cite bad certificate from a local site

Issue Summary

I am trying to visit several live sites that I’ve built using Local. In Safari, Chrome or FF, I get a “Unable to connect” error, or the Local 502 error page. Traceroute shows going 1 hop and timing out. If I use a VPN, I get a bad cert error for abcd.local (one of my local sites).

Troubleshooting Questions

  • Does this happen for all sites in Local, or just one in particular?
    Happening on 5 live sites, all built by me using Local by Flywheel.

  • Are you able to create a new, plain WordPress site in Local and access it in a Browser?
    Yes. the problem seems to be with virtual hosts, I think. Here’s the error from Local Router Logs when trying to visit https://www.northcarolinehs.org

2020/12/03 22:28:45 [error] 6#6: *8 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.95.1, server: alphadyne.local, request: "GET /favicon.ico HTTP/2.0", upstream: "http://192.168.95.100:4149/favicon.ico", host: "www.northcarolinehs.org", referrer: "https://www.northcarolinehs.org/"

Replication

Describe the steps that others can take to replicate this issue. If you have screenshots that can help clarify what is happening, please include them!

System Details

  • Which version of Local is being used?
    3.3.0

  • What Operating System (OS) and OS version is being used?

  • Attach the Local Log. See this Community Forum post for instructions on how to do so:

I figured out the problem–multi-site.

I synced a production multi-site database with my local install of the site. Local then hijacked the production URL of all the subsites and tried to find them as virtual hosts.

I blew away the local multi-site and the problem disappeared.

Nice job tracking that down and thanks for posting the solution!