July 2018
Intermediate to advanced
404 pages
9h 5m
English
Create a web.config, which will tell the Microsoft Azure web server what to do with server.js, which contains Node.js code, by adding <add name="iisnode" path="server.js" verb="*" modules="iisnode"/>. Also, you will redirect all requests to server.js by adding the URL rewrite rule with <match url="/*" /> <action type="Rewrite" url="server.js"/>.
The following code shows the complete web.config file, which will be deployed to the Node.js server:
<?xml version="1.0" encoding="utf-8"?> <configuration> <system.webServer> <handlers> <add name="iisnode" path="server.js" verb="*" modules="iisnode"/> </handlers> <rewrite> <rules> <rule name="DynamicContent"> <match url="/*" /> <action type="Rewrite" ...
Read now
Unlock full access