我试图建立一个当地的Laravel项目.所以我决定使用Homestead vagrant box.在我安装了本教程中的所有内容后,我期待在浏览器中看到结果:
第一次出现的是nginx 502 Bad Gateway Error.所以我试着改写它,然后显示默认的Laravel起始页面.然后我做了一些路线和链接到我的网站的一些子页面,每次我更改我的页面(通过链接或键入获取请求)我得到"502坏网关",刷新网站后消失.
我试过了:
可悲的是,没有什么能够不显示我有时"502 Bad Gateway".但是在我的同事(也是Windows 10)的PC上,所有的东西都是你所期望的.
站点的日志文件(/ var/log/nginx):
2019/01/23 20:23:53 [error] 2532#2532: *1 recv() failed (104: Connection
reset by peer) while reading response header from upstream, client:
192.168.10.1, server: eatthis.test, request: "GET / HTTP/1.1", upstream:
"fastcgi://unix:/var/run/php/php7.3-fpm.sock:", host: "eatthis.test"
2019/01/23 20:24:03 [error] 2532#2532: *1 recv() failed (104: Connection
reset by peer) while reading response header from upstream, client:
192.168.10.1, server: eatthis.test, request: "GET …Run Code Online (Sandbox Code Playgroud)