-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathweb.config
42 lines (37 loc) · 1.29 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
<configuration>
<appSettings>
<add key="rootVirtualDirectory" value="/tetra" />
</appSettings>
<system.webServer>
<handlers>
<add name="iisnode" path="server.js" verb="*" modules="iisnode"/>
</handlers>
<!-- use URL rewriting to redirect the entire branch of the URL namespace
to hello.js node.js application; for example, the following URLs will
all be handled by hello.js:
http://localhost/node/express/hello/foo
http://localhost/node/express/hello/bar
-->
<iisnode
watchedFiles="*.js"
loggingEnabled="true">
</iisnode>
<rewrite>
<rules>
<rule name="All">
<match url="/*"/>
<action type="Rewrite" url="server.js"/>
</rule>
</rules>
</rewrite>
<!-- exclude node_modules directory and subdirectories from serving
by IIS since these are implementation details of node.js applications -->
<security>
<requestFiltering>
<hiddenSegments>
<add segment="node_modules"/>
</hiddenSegments>
</requestFiltering>
</security>
</system.webServer>
</configuration>