Administering an ISP Installation

Previous Topic Next Topic

Creating a Web Site

This example creates a new Web site with the sample ADSI scripts. Suppose you want to create a Web site on your production Web server for a new client that you will be hosting. The repetitive work of creating site after site can easily be automated by running the Mkw3site.vbs script.

Once you’ve set the path, as explained earlier, you can create a Web site.

To create the Web site

  1. On your administration server, open a command prompt.
  2. If you have not registered Cscript.exe, register it as described in step 2 of the previous example.
  3. At the command prompt on the server, type the following line:
    mkw3site -r c:\webs\customer1 --DontStart -t "Customer 1 Site" -o 80

    -i 172.16.100.1

    mkw3site includes the script to make the Web site.

    –r is the root directory of the Web site.

    –DontStart creates the Web site in a stopped state. To start it, you must activate it through the IIS snap-in, or from the command line by typing net start w3svc.

    –t defines the title of the Web site.

    –o defines the port number.

    –i defines the IP address for the Web.


© 1997-1999 Microsoft Corporation. All rights reserved.