相关疑难解决方法(0)

Nginx无法加载CSS和JS文件(MIME类型错误)?

我的网站上出现以下错误:

Error: There are multiple templates named 'velvet'. Each template needs a unique name. 1b1a247fc034d5089f331ec9540138ff6afd5f39.js:75:306
The stylesheet http://webmill.eu/css/bootstrap.min.css was not loaded because its MIME type, "text/html", is not "text/css". webmill.eu
The stylesheet http://webmill.eu/css/font-awesome.min.css was not loaded because its MIME type, "text/html", is not "text/css". webmill.eu
The stylesheet http://webmill.eu/css/velvet.css was not loaded because its MIME type, "text/html", is not "text/css". webmill.eu
The stylesheet http://webmill.eu/css/custom.css was not loaded because its MIME type, "text/html", is not "text/css".   
Run Code Online (Sandbox Code Playgroud)

在对无法加载4种CSS样式表的广泛研究之后,我遵循了一些指导,并尝试通过在nginx文件中进行更改(/

等/ nginx的/网站可用/ Webmill

),插入“ include …

css nginx mime-types meteor

11
推荐指数
3
解决办法
4万
查看次数

标签 统计

css ×1

meteor ×1

mime-types ×1

nginx ×1