当前位置:网站首页>IIS cannot load * woff,*. woff2,*. Solution of SVG file
IIS cannot load * woff,*. woff2,*. Solution of SVG file
2022-04-23 21:21:00 【The man running the horse doesn't get enough sleep】
After website publishing , request *.woff,.woff2,.svg All you get from such files is 404, How can we solve this situation ?
Solution 1 :
To server IIS add to SVG,WOFF,WOFF2 Extensions of these file types , That is to say IIS Add MIME type .
Turn on the server IIS Manager –》 Choose the website to publish –》 In the function view , choice MIME type
choice MIME type –》 Mouse click –》 Get into MIME Type management list –》 Click on the top right corner “ add to …”
Enter the corresponding file extension and MIME type , Click on “ determine ” That's it
1) .woff application/x-font-woff
2) .woff2 application/x-font-woff
3) .svg image/svg+xml
Solution 2 :
Open the configuration file of the website program , stay system.webServer Add the following configuration to the node :
<staticContent>
<remove fileExtension=".woff"/>
<mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
<remove fileExtension=".woff2"/>
<mimeMap fileExtension=".woff2" mimeType="application/x-font-woff2" />
<remove fileExtension=".svg" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
</staticContent>
版权声明
本文为[The man running the horse doesn't get enough sleep]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/111/202204210543443103.html
边栏推荐
- ROS学习笔记-----ROS的使用教程
- 阿里云回应用户注册信息泄露事件
- [leetcode refers to offer 42. Maximum sum of continuous subarrays (simple)]
- Flomo software recommendation
- 电脑越用越慢怎么办?文件误删除恢复方法
- Thread safe sigleton (singleton mode)
- Keras. Layers introduction to various layers
- Arm architecture assembly instructions, registers and some problems
- Sklearn function: Train_ Test_ Split (split training set and test set)
- 危机即机遇,远程办公效率为何会提升?
猜你喜欢
go interface
Sharpness difference (SD) calculation method of image reconstruction and generation domain index
浅谈数据库设计之三大范式
Is rust more suitable for less experienced programmers?
亚马逊和Epic将入驻,微软应用商城向第三方开放
What if Jenkins forgot his password
ROS学习笔记-----ROS的使用教程
Keywords static, extern + global and local variables
[leetcode refers to the two numbers of offer 57. And S (simple)]
The more you use the computer, the slower it will be? Recovery method of file accidental deletion
随机推荐
Crisis is opportunity. Why will the efficiency of telecommuting improve?
如何发挥测试策略的指导性作用
Lunch on the 23rd day at home
presto on spark 支持3.1.3记录
Zhongchuang storage | how to choose a useful distributed storage cloud disk
【SDU Chart Team - Core】SVG属性类设计之枚举
Norm normalization in tensorflow and pytorch of records
Introduce structured concurrency and release swift 5.5!
Write table of MySQL Foundation (create table)
C knowledge
使用mbean 自动执行heap dump
Sklearn function: Train_ Test_ Split (split training set and test set)
Problem brushing plan -- dynamic programming (III)
Amazon and epic will be settled, and the Microsoft application mall will be opened to third parties
MySQL进阶之表的增删改查
Thread safe sigleton (singleton mode)
South Korea may ban apple and Google from offering commission to developers, the first in the world
Flomo software recommendation
Some thoughts on super in pytorch, combined with code
ubutnu20安装CenterNet