-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathweb.config
More file actions
30 lines (23 loc) · 800 Bytes
/
web.config
File metadata and controls
30 lines (23 loc) · 800 Bytes
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
<configuration>
<system.webServer>
<!-- indicates that the server.js file is a node.js application
to be handled by the iisnode module -->
<handlers>
<add name="iisnode" path="dist/server.js" verb="*" modules="iisnode" />
</handlers>
<!-- use URL rewriting to redirect the entire branch of the URL namespace
to server.js node.js application; for example, the following URLs will
all be handled by server.js:
http://localhost/node/express/myapp/foo
http://localhost/node/express/myapp/bar
-->
<rewrite>
<rules>
<rule name="myapp">
<match url="/*" />
<action type="Rewrite" url="dist/server.js" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>