-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathweb.config
More file actions
executable file
·25 lines (24 loc) · 899 Bytes
/
web.config
File metadata and controls
executable file
·25 lines (24 loc) · 899 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
<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="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/urlrewrite/server
http://localhost/node/urlrewrite/server/foo
http://localhost/node/urlrewrite/server/foo/bar/baz?param=bat
-->
<rewrite>
<rules>
<rule name="server">
<match url="/*" />
<action type="Rewrite" url="server.js" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>