Empty HTML pages in browser

14 views
Skip to first unread message

Bobby Walters

unread,
Apr 21, 2020, 9:43:25 AM4/21/20
to Vagrant
Hello,

I've been having problems with Vagrant VM rendering empty HTML pages in browser. I have just created a fresh, empty Laravel project and tried to access it. Even that gives me an empty HTML page. Has anyone experienced this? What could be causing it? Any help would be appreciated! Thank you!

Dennis Chang

unread,
Apr 21, 2020, 12:14:43 PM4/21/20
to Vagrant
Hi Bobby,

My guess is this isn't a Vagrant problem, but I'm not sure because your problem statement is too vague. So it would be very helpful to make it more precise.
Are you familiar with the curl command? Instead of trying to access your webpage with a browser, use curl and post the output.
E.g. run curl against google.com

`curl -Iv http://google.com` produces the following output,

```
*   Trying 172.217.164.238...
* TCP_NODELAY set
* Connected to google.com (172.217.164.238) port 80 (#0)
> HEAD / HTTP/1.1
> Host: google.com
> User-Agent: curl/7.64.1
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
HTTP/1.1 301 Moved Permanently
< Content-Type: text/html; charset=UTF-8
Content-Type: text/html; charset=UTF-8
< Date: Tue, 21 Apr 2020 16:11:39 GMT
Date: Tue, 21 Apr 2020 16:11:39 GMT
< Expires: Thu, 21 May 2020 16:11:39 GMT
Expires: Thu, 21 May 2020 16:11:39 GMT
< Cache-Control: public, max-age=2592000
Cache-Control: public, max-age=2592000
< Server: gws
Server: gws
< Content-Length: 219
Content-Length: 219
< X-XSS-Protection: 0
X-XSS-Protection: 0
< X-Frame-Options: SAMEORIGIN
X-Frame-Options: SAMEORIGIN

<
* Connection #0 to host google.com left intact
* Closing connection 0
```

So similar to my example, your Laravel VM provides a website (just like google), if you hit the website with curl what is the output?
Reply all
Reply to author
Forward
0 new messages