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 3d17a9b commit cda83bdCopy full SHA for cda83bd
favorite-file/Nginx-Settings/nginx.conf
@@ -39,6 +39,12 @@ http {
39
root /usr/program/tomcat8/webapps/ROOT;#静态文件直接读取硬盘,所有这里直接写tomcat的程序里面的静态资源目录
40
index index.html index.jsp;
41
}
42
+
43
+ location = / {
44
+ root /usr/program/tomcat8/webapps/ROOT;#静态文件直接读取硬盘,所有这里直接写tomcat的程序里面的静态资源目录
45
+ index index.html;
46
+ }
47
48
# 匹配用户导航静态 html 目录路径
49
location ^~ /u/ {
50
0 commit comments