How to use Node.js in IIS with IISNode

IISNode with IIS in Node.js use to How

I'm simply describe the steps to get node.js working with the IIS 7.5:

1. Download and install Latest Node.js
2. Download and install Latest IISNode
3. Create new Folder "nodejs_test" in Inetpub/wwwroot

4. Create test.js with following Content: 

var http = require('http');

http.createServer(function (req, res) {
    res.writeHead(200, {'Content-Type': 'text/plain'});
    res.end('Hello, world! [helloworld sample]');
5. Create web.config with following content:
      <add name="iisnode" path="test.js" verb="*" modules="iisnode" />
6. Convert in IIS the new Folder into an application
7. Give IIS_IUSRS full access to the new Folder 
8. Open Browser insert localhost/nodejs_test/test.js
9. finish
Have fun 



Comments are closed