Administering an ISP Installation |
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
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.