Skip to content

Commit d8542aa

Browse files
committed
2017-02-06
1 parent 0d703af commit d8542aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

favorite-file/Nginx-Settings/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ http {
4545
}
4646
#静态资源转发
4747
#由nginx处理静态页面
48-
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|ico)$ {
48+
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|ico|woff|woff2|ttf)$ {
4949
root /usr/program/tomcat8/webapps/ROOT;#这里直接写tomcat的程序里面的静态资源目录
5050
expires 30d;#使用expires缓存模块,缓存到客户端30(这个模块看下有没有安装)
5151
}

0 commit comments

Comments
 (0)