Skip to content

Commit 37c63b1

Browse files
committed
2017-02-05
1 parent 9063e27 commit 37c63b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

favorite-file/Nginx-Settings/nginx.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ http {
3939
root /usr/program/tomcat8/webapps/ROOT;#静态文件直接读取硬盘,所有这里直接写tomcat的程序里面的静态资源目录
4040
index index.html index.jsp;
4141
}
42+
# 匹配静态 html 目录路径
43+
location ^~ /u/ {
44+
root /usr/program/tomcat8/webapps/ROOT;#静态文件直接读取硬盘,所有这里直接写tomcat的程序里面的静态资源目录
45+
}
4246
#静态资源转发
4347
#由nginx处理静态页面
4448
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|ico)$ {

0 commit comments

Comments
 (0)