laraval-admin 页面小图标不显示
类似问题
nginx下加载eot|otf|ttf|woff|svg等404 错误问题
浏览器console控制台报错
GET http://admin.xxx.com/vendor/laravel-admin/google-fonts/fonts/Source-Sans-Pro.woff2 net::ERR_ABORTED 404 (Not Found)
CSS 样式引用字体
@font-face {font-family: 'w-e-icon';src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAABXAAAsAAAAAFXQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIPAmNtYXAAAAFoAAAA9AAAAPRAxxN6Z2FzcAAAAlwAAAAIAAAACAAAABBnbHlmAAACZAAAEHwAABB8kRGt5WhlYWQAABLgAAAANgAAADYN4rlyaGhlYQAAExgAAAAkAAAAJAfEA99obXR4AAATPAAAAHwAAAB8cAcDvGxvY2EAABO4AAAAQAAAAEAx8jYEbWF4cAAAE/gAAAAgAAAAIAAqALZuYW1lAAAUGAAAAYYAAAGGmUoJ+3Bvc3QAABWgAAAAIAAAACAAAwAAAAMD3AGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA8fwDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEANgAAAAyACAABAASAAEAIOkG6Q3pEulH6Wbpd+m56bvpxunL6d/qDepl6mjqcep58A3wFPEg8dzx/P/9//8AAAAAACDpBukN6RLpR+ll6Xfpuem76cbpy+nf6g3qYupo6nHqd/AN8BTxIPHc8fz//f//AAH/4xb+FvgW9BbAFqMWkxZSFlEWRxZDFjAWAxWvFa0VpRWgEA0QBw78DkEOIgADAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAH//wAPAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgA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AIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) format('truetype');font-weight: normal;font-style: normal;
}
mime.types 配置
nginx/conf/mime.types
types {# Audioaudio/midi mid midi kar;audio/mp4 aac f4a f4b m4a;audio/mpeg mp3;audio/ogg oga ogg opus;audio/x-realaudio ra;audio/x-wav wav;# Imagesimage/bmp bmp;image/gif gif;image/jpeg jpeg jpg;image/png png;image/svg+xml svg svgz;image/tiff tif tiff;image/vnd.wap.wbmp wbmp;image/webp webp;image/x-icon ico cur;image/x-jng jng;# JavaScriptapplication/javascript js;application/json json;# Manifest filesapplication/x-web-app-manifest+json webapp;text/cache-manifest manifest appcache;# Microsoft Officeapplication/msword doc;application/vnd.ms-excel xls;application/vnd.ms-powerpoint ppt;application/vnd.openxmlformats-officedocument.wordprocessingml.document docx;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx;application/vnd.openxmlformats-officedocument.presentationml.presentation pptx;# Videovideo/3gpp 3gpp 3gp;video/mp4 mp4 m4v f4v f4p;video/mpeg mpeg mpg;video/ogg ogv;video/quicktime mov;video/webm webm;video/x-flv flv;video/x-mng mng;video/x-ms-asf asx asf;video/x-ms-wmv wmv;video/x-msvideo avi;# Web feedsapplication/xml atom rdf rss xml;# Web fontsapplication/font-woff woff;application/font-woff2 woff2;application/vnd.ms-fontobject eot;application/x-font-ttf ttc ttf;font/opentype otf;# Otherapplication/java-archive jar war ear;application/mac-binhex40 hqx;application/pdf pdf;application/postscript ps eps ai;application/rtf rtf;application/vnd.wap.wmlc wmlc;application/xhtml+xml xhtml;application/vnd.google-earth.kml+xml kml;application/vnd.google-earth.kmz kmz;application/x-7z-compressed 7z;application/x-chrome-extension crx;application/x-opera-extension oex;application/x-xpinstall xpi;application/x-cocoa cco;application/x-java-archive-diff jardiff;application/x-java-jnlp-file jnlp;application/x-makeself run;application/x-perl pl pm;application/x-pilot prc pdb;application/x-rar-compressed rar;application/x-redhat-package-manager rpm;application/x-sea sea;application/x-shockwave-flash swf;application/x-stuffit sit;application/x-tcl tcl tk;application/x-x509-ca-cert der pem crt;application/x-bittorrent torrent;application/zip zip;application/octet-stream bin exe dll;application/octet-stream deb;application/octet-stream dmg;application/octet-stream iso img;application/octet-stream msi msp msm;application/octet-stream safariextz;text/css css;text/html html htm shtml;text/mathml mml;text/plain txt;text/vnd.sun.j2me.app-descriptor jad;text/vnd.wap.wml wml;text/vtt vtt;text/x-component htc;text/x-vcard vcf;
}
conf 配置
nginx/conf/vhost/admin.conf
#同源策略,跨域处理location ~* \.(eot|otf|ttf|woff|woff2|svg)$ { add_header Access-Control-Allow-Origin *;}
重启Nginx
nginx/sbin/nginx -s reload