向IIS10添加Mine类型

背景

在做网站开始的时候回经常使用到网页字体,于是向服务器上传了相关字体文件(后缀是.ttf),访问页面的时候字体没有显示。查看了浏览器的报错提示,显示访问不到字体文件。

很奇怪,明明上传了字体文件,相关引用和写法都对了,为什么了无法访问到呢,报“HTTP 错误 404.3 - Not Found”错误。原来是IIS指定的Mine类型里没有改后缀的支持,添加对应的Mine类型即可。


以下是支持的Mine类型

ExtensionType/sub-typeIIS 5.0
*application/octet-streamYes
323text/h323Yes
acxapplication/internet-property-streamYes
aiapplication/postscriptYes
aifaudio/x-aiffYes
aifcaudio/x-aiffYes
aiffaudio/x-aiffYes
asfvideo/x-ms-asfYes
asrvideo/x-ms-asfYes
asxvideo/x-ms-asfYes
auaudio/basicYes
avivideo/x-msvideoYes
axsapplication/olescriptYes
bastext/plainYes
bcpioapplication/x-bcpioYes
binapplication/octet-streamYes
bmpimage/bmpYes
ctext/plainYes
catapplication/vnd.ms-pkiseccatYes
cdfapplication/x-cdfYes
cerapplication/x-x509-ca-certYes
classapplication/octet-streamYes
clpapplication/x-msclipYes
cmximage/x-cmxYes
codimage/cis-codYes
cpioapplication/x-cpioYes
crdapplication/x-mscardfileYes
crlapplication/pkix-crlYes
crtapplication/x-x509-ca-certYes
cshapplication/x-cshYes
csstext/cssYes
dcrapplication/x-directorYes
derapplication/x-x509-ca-certYes
dirapplication/x-directorYes
dllapplication/x-msdownloadYes
dmsapplication/octet-streamYes
docapplication/mswordYes
dotapplication/mswordYes
dviapplication/x-dviYes
dxrapplication/x-directorYes
epsapplication/postscriptYes
etxtext/x-setextYes
evyapplication/envoyYes
exeapplication/octet-streamYes
fifapplication/fractalsYes
flrx-world/x-vrmlYes
gifimage/gifYes
gtarapplication/x-gtarYes
gzapplication/x-gzipYes
htext/plainYes
hdfapplication/x-hdfYes
hlpapplication/winhlpYes
hqxapplication/mac-binhex40Yes
htaapplication/htaYes
htctext/x-componentYes
htmtext/htmlYes
htmltext/htmlYes
htttext/webviewhtmlYes
icoimage/x-iconYes
iefimage/iefYes
iiiapplication/x-iphoneYes
insapplication/x-internet-signupYes
ispapplication/x-internet-signupYes
jfifimage/pipegYes
jpeimage/jpegYes
jpegimage/jpegYes
jpgimage/jpegYes
jsapplication/x-javascriptYes
latexapplication/x-latexYes
lhaapplication/octet-streamYes
lsfvideo/x-la-asfYes
lsxvideo/x-la-asfYes
lzhapplication/octet-streamYes
m13application/x-msmediaviewYes
m14application/x-msmediaviewYes
m3uaudio/x-mpegurlYes
manapplication/x-troff-manYes
mdbapplication/x-msaccessYes
meapplication/x-troff-meYes
mhtmessage/rfc822Yes
mhtmlmessage/rfc822Yes
midaudio/midYes
mnyapplication/x-msmoneyYes
movvideo/quicktimeYes
movievideo/x-sgi-movieYes
mp2video/mpegYes
mp3audio/mpegYes
mpavideo/mpegYes
mpevideo/mpegYes
mpegvideo/mpegYes
mpgvideo/mpegYes
mppapplication/vnd.ms-projectYes
mpv2video/mpegYes
msapplication/x-troff-msYes
mvbapplication/x-msmediaviewYes
nwsmessage/rfc822Yes
odaapplication/odaYes
p10application/pkcs10Yes
p12application/x-pkcs12Yes
p7bapplication/x-pkcs7-certificatesYes
p7capplication/x-pkcs7-mimeYes
p7mapplication/x-pkcs7-mimeYes
p7rapplication/x-pkcs7-certreqrespYes
p7sapplication/x-pkcs7-signatureYes
pbmimage/x-portable-bitmapYes
pdfapplication/pdfYes
pfxapplication/x-pkcs12Yes
pgmimage/x-portable-graymapYes
pkoapplication/ynd.ms-pkipkoYes
pmaapplication/x-perfmonYes
pmcapplication/x-perfmonYes
pmlapplication/x-perfmonYes
pmrapplication/x-perfmonYes
pmwapplication/x-perfmonYes
pnmimage/x-portable-anymapYes
potapplication/vnd.ms-powerpointYes
ppmimage/x-portable-pixmapYes
ppsapplication/vnd.ms-powerpointYes
pptapplication/vnd.ms-powerpointYes
prfapplication/pics-rulesYes
psapplication/postscriptYes
pubapplication/x-mspublisherYes
qtvideo/quicktimeYes
raaudio/x-pn-realaudioYes
ramaudio/x-pn-realaudioYes
rasimage/x-cmu-rasterYes
rgbimage/x-rgbYes
rmiaudio/midYes
roffapplication/x-troffYes
rtfapplication/rtfYes
rtxtext/richtextYes
scdapplication/x-msscheduleYes
scttext/scriptletYes
setpayapplication/set-payment-initiationYes
setregapplication/set-registration-initiationYes
shapplication/x-shYes
sharapplication/x-sharYes
sitapplication/x-stuffitYes
sndaudio/basicYes
spcapplication/x-pkcs7-certificatesYes
splapplication/futuresplashYes
srcapplication/x-wais-sourceYes
sstapplication/vnd.ms-pkicertstoreYes
stlapplication/vnd.ms-pkistlYes
stmtext/htmlYes
sv4cpioapplication/x-sv4cpioYes
sv4crcapplication/x-sv4crcYes
tapplication/x-troffYes
tarapplication/x-tarYes
tclapplication/x-tclYes
texapplication/x-texYes
texiapplication/x-texinfoYes
texinfoapplication/x-texinfoYes
tgzapplication/x-compressedYes
tifimage/tiffYes
tiffimage/tiffYes
trapplication/x-troffYes
trmapplication/x-msterminalYes
tsvtext/tab-separated-valuesYes
txttext/plainYes
ulstext/iulsYes
ustarapplication/x-ustarYes
vcftext/x-vcardYes
vrmlx-world/x-vrmlYes
wavaudio/x-wavYes
wcmapplication/vnd.ms-worksYes
wdbapplication/vnd.ms-worksYes
wksapplication/vnd.ms-worksYes
wmfapplication/x-msmetafileYes
wpsapplication/vnd.ms-worksYes
wriapplication/x-mswriteYes
wrlx-world/x-vrmlYes
wrzx-world/x-vrmlYes
xafx-world/x-vrmlYes
xbmimage/x-xbitmapYes
xlaapplication/vnd.ms-excelYes
xlcapplication/vnd.ms-excelYes
xlmapplication/vnd.ms-excelYes
xlsapplication/vnd.ms-excelYes
xltapplication/vnd.ms-excelYes
xlwapplication/vnd.ms-excelYes
xofx-world/x-vrmlYes
xpmimage/x-xpixmapYes
xwdimage/x-xwindowdumpYes
zapplication/x-compressYes
zipapplication/zipYes

添加过程

1、双击“Mine类型”图标

这里写图片描述


2、在列表区域,右键-添加

这里写图片描述


3、填写要添加的Mine类型信息

这里写图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值