Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mikey-passio's avatar

This site can’t be reached - Homestead AND Laravel Forge

I've been working on a site using Homestead and have never been able to view it in a host browser using a domain name, even though it's added to my hosts file. Pinging the host name bounced the correct IP back but any browser I tried responded with the equivalent of ERR_CONNECTION_REFUSED. Messed around with ngnix on homestead a bit but thankfully going to the IP address in the browser worked, so I just used that.

Now I've deployed the site using Laravel Forge to a Digital Ocean box and I'm getting the same thing. Going to IP this time doesn't work as it heads to the default site. Most frustratingly, if I curl it, I get the right HTML back:

~> curl readright.develop
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
...

WHATS GOING ON!?!

0 likes
0 replies

Please or to participate in this conversation.