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 8f49a3c commit c5ab73cCopy full SHA for c5ab73c
favorite-file/Nginx-Settings/nginx.conf
@@ -88,7 +88,7 @@ http {
88
89
#静态资源转发
90
#由nginx处理静态页面
91
- location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|ico|woff|woff2|ttf|eot)$ {
+ location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|ico|woff|woff2|ttf|eot|txt|svg)$ {
92
root /usr/program/tomcat8/webapps/ROOT;#这里直接写tomcat的程序里面的静态资源目录
93
expires 30d;#使用expires缓存模块,缓存到客户端30天(这个模块看下有没有安装)
94
}
0 commit comments