-
Notifications
You must be signed in to change notification settings - Fork 0
/
web.config
66 lines (66 loc) · 3.6 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="LowerCaseRule1" stopProcessing="true">
<match url="[A-Z]" ignoreCase="false" />
<action type="Redirect" url="{ToLower:{URL}}" />
<conditions>
<add input="{HTTP_METHOD}" pattern="POST" negate="true" />
</conditions>
</rule>
<rule name="For .local call app_dev.php" stopProcessing="true">
<match url="^(login|login_check|register(/.*)?|logout|welcome|whoami|profile(/.*)?|resetting(/.*)?|api/.*|cal/.*|_wdt/.*)$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{PATH_TRANSLATED}" matchType="IsFile" negate="true" />
<add input="{DOCUMENT_ROOT}{PATH_INFO}index.php" matchType="IsFile" negate="true" />
<add input="{HTTP_HOST}" pattern="^.+\.local$" ignoreCase="false" />
</conditions>
<action type="Rewrite" url="/app_dev.php/{R:1}" appendQueryString="true" />
</rule>
<rule name="For any call app.php" stopProcessing="true">
<match url="^(login|login_check|register(/.*)?|logout|welcome|whoami|profile(/.*)?|resetting(/.*)?|api/.*|cal/.*)$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{PATH_TRANSLATED}" matchType="IsFile" negate="true" />
<add input="{DOCUMENT_ROOT}{PATH_INFO}index.php" matchType="IsFile" negate="true" />
</conditions>
<action type="Rewrite" url="/app.php/{R:1}" appendQueryString="true" />
</rule>
<rule name="Ember server" stopProcessing="true">
<match url="^.*$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{PATH_TRANSLATED}" matchType="IsFile" negate="true" />
<add input="{HTTP_HOST}" pattern="^.+\.local$" ignoreCase="false" />
</conditions>
<action type="Rewrite" url="http://localhost:4200/{R:0}" />
</rule>
<rule name="Ember assets" stopProcessing="true">
<match url="^assets/.*$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{PATH_TRANSLATED}" matchType="IsFile" negate="true" />
</conditions>
<action type="Rewrite" url="/dist/{R:0}" />
</rule>
<rule name="Ember index.html" stopProcessing="true">
<match url="^.*$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{PATH_TRANSLATED}" matchType="IsFile" negate="true" />
</conditions>
<action type="Rewrite" url="/dist/index.html" />
</rule>
</rules>
</rewrite>
<security>
<requestFiltering>
<fileExtensions>
<add fileExtension=".scss" allowed="true" />
</fileExtensions>
</requestFiltering>
</security>
<staticContent>
<mimeMap fileExtension=".scss" mimeType="text/plain" />
</staticContent>
</system.webServer>
</configuration>