-
Notifications
You must be signed in to change notification settings - Fork 0
/
Web.config
39 lines (39 loc) · 1.59 KB
/
Web.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.5.2"/>
<httpRuntime targetFramework="4.5.2"/>
<customErrors mode="Off"/>
</system.web>
<location>
<system.webServer>
<!-- without this azure webapps will suppress error body -->
<httpErrors existingResponse="PassThrough" />
<rewrite>
<rules>
<rule name="root_default_ashx" patternSyntax="Wildcard">
<match url="*.ashx" negate="true" />
<conditions>
<add input="{APPL_MD_PATH}" pattern="*/ROOT" />
<add input="{URL}" pattern="/" negate="true" />
<add input="{URL}" pattern="*.htm*" negate="true" />
<add input="{URL}" pattern="*.ico*" negate="true" />
</conditions>
<action type="Rewrite" url="{R:1}default.ashx" appendQueryString="true" />
</rule>
<rule name="azure_default_ashx" patternSyntax="Wildcard">
<match url="*.ashx" negate="true" />
<conditions>
<add input="{APPL_MD_PATH}" pattern="*/MySqlUtils" />
<add input="{URL}" pattern="/MySqlUtils" negate="true" />
<add input="{URL}" pattern="/MySqlUtils/" negate="true" />
<add input="{URL}" pattern="*.htm*" negate="true" />
<add input="{URL}" pattern="*.ico*" negate="true" />
</conditions>
<action type="Rewrite" url="{R:1}default.ashx" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</location>
</configuration>