How to add multiple sites?
IIS in XP does not support multiple sites. We can add multiple sites by running a script.
The procedure is as follows:
- Open a command line window
- Enter "CD \ Inetpub \ adminscripts" and press ENTER
- Know the maximum number of the site you have created.
Enter the following command
Adsutil. vbs Enum/P w3svc
- If you have never added a site, the maximum number is 1.
- Add the largest number to 1 and only run the following command:
Adsutil. vbs copy w3svc/1 w3svc/X
HereXIs the new maximum number. For example, if the maximum number you find through Enum is 4, the command line should be like this:
Adsutil. vbs copy w3svc/1 w3svc/5
- Open the IIS manager after running, and you will see that a new site has been created. This site is a copy of the previous site. You can modify the site as needed.
- However, XP can only run one site at a time. To use a new site, you must stop the previous one.
How to increase the maximum number of connections?
The maximum number of connections can be increased to 40, and the higher setting is invalid, because 40 is hard-coded in the Code as the maximum limit.
The command is as follows:
Adsutil set w3svc/maxconnections 40