Skip to content

Commit cda83bd

Browse files
authored
Update nginx.conf
1 parent 3d17a9b commit cda83bd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

favorite-file/Nginx-Settings/nginx.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ http {
3939
root /usr/program/tomcat8/webapps/ROOT;#静态文件直接读取硬盘,所有这里直接写tomcat的程序里面的静态资源目录
4040
index index.html index.jsp;
4141
}
42+
43+
location = / {
44+
root /usr/program/tomcat8/webapps/ROOT;#静态文件直接读取硬盘,所有这里直接写tomcat的程序里面的静态资源目录
45+
index index.html;
46+
}
47+
4248
# 匹配用户导航静态 html 目录路径
4349
location ^~ /u/ {
4450
root /usr/program/tomcat8/webapps/ROOT;#静态文件直接读取硬盘,所有这里直接写tomcat的程序里面的静态资源目录

0 commit comments

Comments
 (0)