Nginx与代客版一起运行时不会加载静态文件

时间:2019-03-10 21:34:38

标签: ubuntu nginx valet

我刚刚安装了valet-linux,并为其配置了端口8888,将其停泊在"var/www/html"下,以运行"blog"目录下的文件夹"html"。我设法运行了“ blog.test”

但是nginx不会加载静态文件(css和js) 当我输入"http://blog.test:8888/assets/app/js/dashboard.js"

显示“ 500 Internal Server Error” nginx / 1.14.0(Ubuntu)”存在严格的"/var/www/html/blog/public/assets/app/js/dashboard.js"

Nginx错误日志

2019/03/10 23:55:33 [error] 25274#25274: *1 rewrite or internal redirection cycle while processing "/home/mustafa/.composer/vendor/cpriego/valet-linux/server.php", client: 127.0.0.1, server: , request: "GET /js/dashboard.js HTTP/1.1", upstream: "fastcgi://unix:/home/mustafa/.valet/valet.sock", host: "blog.test:8888"

只是一个示例。 Nginx根本不加载任何CSS或JS

0 个答案:

没有答案