martedì 10 marzo 2009

IIS 6.0 (w2003) disabilitare il bind su tutti gli IP

When you start Internet Information Services (IIS) 6.0 on Microsoft Windows Server 2003, IIS binds to all IP addresses on the server, not just the IP addresses that are assigned to Web sites. This may be true even though you have set the metabase property DisableSocketPooling to True.

To successfully allow applications to use the same port on different IP addresses, you must use a new utility, Httpcfg.exe. Httpcfg.exe is located on the Windows Server 2003 CD in the Support\Tools directory as part of the Support.cab file.

To install Microsoft Windows support tools
1.        Insert the Windows Server 2003 CD in the CD-ROM or DVD-ROM drive.
2.        When the CD opens, click Perform Additional Tasks.
3.        Click Browse this CD.
4.        Double-click Support.
5.        Double-click Tools.
6.        Double-click SUPTOOLS.MSI.
7.        Click Next, type your information in the Name and Organization boxes, click Next, and then click Next on the following screen.
8.        Click Next again to start the installation.
9.        Click Finish.

To add an IP address to the IP inclusion list
1.        Click Start, and then click Run.
2.        Type cmd, and then click OK to open a command prompt.
3.        Type the following, where xxx.xxx.x.x is the IP address you want to add:
httpcfg set iplisten -i xxx.xxx.x.x
When this succeeds, Httpcfg returns the following:
HttpSetServiceConfiguration completed with 0

To view additional status codes, see the Httpcfg help.

4.        After the IP address is added, use the following command to list it:
httpcfg query iplisten
Httpcfg returns the following:
IP :xxx.xxx.x.x


5.        From the command prompt, stop the HTTP service and its dependent services. To do this, type the following string at the command prompt:
net stop http /y
6.        From the command prompt, restart the HTTP service and it dependent services. To do this, type the following string at the command prompt:
net start w3svc


oppure:

net stop http
net start http
iisreset

Nessun commento:

Posta un commento