网站首页 网站源码
web.config
配置配置url路径中允许出现的扩展名
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified"/>
</handlers>
<aspNetCore processPath="dotnet" arguments=".\Dpz.Core.Web.dll" stdoutLogEnabled="false"
stdoutLogFile=".\logs\stdout" hostingModel="inprocess"/>
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By"/>
</customHeaders>
</httpProtocol>
<security>
<requestFiltering allowDoubleEscaping="true">
<fileExtensions allowUnlisted="true">
<remove fileExtension=".java"/>
<remove fileExtension=".cs"/>
<remove fileExtension=".xml"/>
<remove fileExtension=".config"/>
<remove fileExtension=".cshtml"/>
<remove fileExtension=".sln"/>
<remove fileExtension=".csproj"/>
<add fileExtension=".java" allowed="true"/>
<add fileExtension=".cs" allowed="true"/>
<add fileExtension=".xml" allowed="true"/>
<add fileExtension=".config" allowed="true"/>
<add fileExtension=".cshtml" allowed="true"/>
<add fileExtension=".sln" allowed="true"/>
<remove fileExtension=".csproj"/>
</fileExtensions>
</requestFiltering>
</security>
</system.webServer>
</location>
</configuration>
{
"Logging": {
"LogLevel": {
"Default": "Trace",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AgileConfig": {
"appId": "",
"secret": "",
"nodes": "",
"name": "",
"env": "DEV"
}
}
2023年12月,网站配置改为AgileConfig配置中心