Skip to content

Commit c5ab73c

Browse files
committed
nginx
1 parent 8f49a3c commit c5ab73c

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
@@ -88,7 +88,7 @@ http {
8888

8989
#静态资源转发
9090
#由nginx处理静态页面
91-
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|ico|woff|woff2|ttf|eot)$ {
91+
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|ico|woff|woff2|ttf|eot|txt|svg)$ {
9292
root /usr/program/tomcat8/webapps/ROOT;#这里直接写tomcat的程序里面的静态资源目录
9393
expires 30d;#使用expires缓存模块,缓存到客户端30天(这个模块看下有没有安装)
9494
}

0 commit comments

Comments
 (0)