We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d703af commit d8542aaCopy full SHA for d8542aa
favorite-file/Nginx-Settings/nginx.conf
@@ -45,7 +45,7 @@ http {
45
}
46
#静态资源转发
47
#由nginx处理静态页面
48
- location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|ico)$ {
+ location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|ico|woff|woff2|ttf)$ {
49
root /usr/program/tomcat8/webapps/ROOT;#这里直接写tomcat的程序里面的静态资源目录
50
expires 30d;#使用expires缓存模块,缓存到客户端30天(这个模块看下有没有安装)
51
0 commit comments