Skip to content

Commit

Permalink
app项目模板新增web.nfig文件
Browse files Browse the repository at this point in the history
  • Loading branch information
zhontai committed Oct 16, 2024
1 parent 7478101 commit 922a405
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion templates/admin/content/src/MyApp.Host/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
//告警邮件
"AlerEmail": {
"Enable": true,
"Adress": ""
"Address": ""
}
},
//滑块验证码
Expand Down
23 changes: 23 additions & 0 deletions templates/admin/content/src/MyApp.Host/web.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<rewrite>
<rules>
<rule name="Handle History Mode and custom 404/500" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="/" />
</rule>
</rules>
</rewrite>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath=".\ZhonTai.Host.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
</system.webServer>
</location>
</configuration>

0 comments on commit 922a405

Please sign in to comment.