我正在设置一个新服务器,尝试将.hbs文件提供给Javascript,并抛出404。
我的逻辑思路是将其添加到mime.types
的{{1}}文件夹中
我继续添加了/etc/nginx/mime.types
,但是即使在服务nginx重新启动后,问题仍然会发生
text/x-handlebars-template hbs;
我只希望能够在NGINX上提供...
text/vnd.wap.wml wml;
text/x-component htc;
text/x-handlebars-template hbs;
image/png png;
image/tiff tif tiff;
...
文件!