lith 4 жил өмнө
parent
commit
1a9bc3e71a

+ 2 - 2
dotnet/Doc/PublishFile/Sers单体压测/ServiceCenter/appsettings.json

@@ -204,13 +204,13 @@
 
           /* 请求路径(可不指定)。demo:"/file/static"。The relative request path that maps to static resources */
           //"requestPath": "/file",
-          
+
 
           /* 静态文件路径。可为相对路径或绝对路径。若为空或空字符串则默认为入口程序所在目录下的wwwroot文件夹。demo:"wwwroot/demo" */
           "rootPath": "wwwroot",
 
           /* 默认页面(可不指定)。An ordered list of file names to select by default. List length and ordering  may affect performance */
-          //"defaultFileNames": [],
+          "defaultFileNames": [ "index.html" ],
 
           /* 是否可浏览目录(default false)。Enables directory browsing */
           //"useDirectoryBrowser": false,

+ 1 - 1
dotnet/netcore/ServiceCenter/App.Gover.Gateway/appsettings.json

@@ -77,7 +77,7 @@
           "rootPath": "wwwroot",
 
           /* 默认页面(可不指定)。An ordered list of file names to select by default. List length and ordering  may affect performance */
-          //"defaultFileNames": [],
+          "defaultFileNames": ["index.html"],
 
           /* 是否可浏览目录(default false)。Enables directory browsing */
           //"useDirectoryBrowser": false,

+ 10 - 0
dotnet/netcore/ServiceCenter/App.Gover.Gateway/wwwroot/index.html

@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+    <title>正在跳转</title>
+    <meta http-equiv="refresh" content="0;url=/_gover_/index.html?user=admin_123456">
+</head>
+<body >
+  正在跳转...
+</body>
+</html>

+ 1 - 1
dotnet/netcore/ServiceCenter/App.ServiceCenter/appsettings.json

@@ -428,7 +428,7 @@
           "rootPath": "wwwroot",
 
           /* 默认页面(可不指定)。An ordered list of file names to select by default. List length and ordering  may affect performance */
-          //"defaultFileNames": [],
+          "defaultFileNames": [ "index.html" ],
 
           /* 是否可浏览目录(default false)。Enables directory browsing */
           //"useDirectoryBrowser": false,