0.2.0 • Published 10 years ago

iis v0.2.0

Weekly downloads
41
License
-
Repository
github
Last release
10 years ago

node-iis

Node module for administering sites, application pools and related settings in IIS 7+.

Wraps up common commands you would use in the \windows\system32\inetsrv\appcmd utility.

Note: because this is IIS, you need to execute it using "Run As Administrator".

Install

npm install iis

Create a new site

var iis = require('iis');

iis.createSite({
    name:'MyNewSite',
    protocol: 'http',
    port: 80,
    host: '*',
    path : __dirname + '/site'
},function(err,rsp) {
    if (!err) {
       console.log('Site created.');
    }
});

iis.createSite options

  • name: The name of the site in IIS.
  • protocol: Protocol. Either 'http' or 'https'.
  • port: Numeric port number.
  • host: Host header to bind the site to (mydomain.com). Use '*' for any.
  • path: Physical root path of the site (ex: 'c:\\inetpub\\wwwroot\\newsite').

Start/stop a site

//start
iis.startSite('MyNewSite',function(err,rsp) {
   if (!err) {
     console.log('Site started');
   }
});

//stop
iis.stopSite('MyNewSite',function(err,rsp) {
    if (!err) {
       console.log('Site stopped');
    }
});

//
// Note: rsp param in callback contains the std out from the appcmd.exe shell output
0.2.0

10 years ago

0.1.66

12 years ago

0.1.65

12 years ago

0.1.6

12 years ago

0.1.5

12 years ago

0.1.41

12 years ago

0.1.4

12 years ago

0.1.31

12 years ago

0.1.3

12 years ago

0.1.2

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago