By default windows XP disables multiple websites under root i.e. IIS.
Follow the following steps to create another website in IIS.
Go the AdminScripts folder in the Inetpub Folder. The Inetpub will be created at the time of installing IIS. The path is C: ? Inetpub ? AdminScripts.
open command prompt as said and follow the steps.
Type cd C:\Inetpub\AdminScripts . This command causes the location will moved to AdminScripts folder.
Type adsutil.vbs enum w3svc /p command to get the list of websites in IIS. This will show the Default Web Site i.e. w3svc/1.
Type adsutil.vbs create_vserv W3SVC/2. This will create another website in IIS.
Type adsutil.vbs copy W3SVC/1 W3SVC/2, to copy the contents of default website to the newly created website.
Open the IIS to verify it.
To delete the newly created website use adsutil.vbs delete W3SVC/2 command.
To start and stop the IIS use net start w3svc and to stop IIS use net stop w3svc.
No comments:
Post a Comment