Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

Each Web site is its own subkey under HKEY_LOCAL_MACHINE\COMM\HTTPD\Websites. Each Web site contains most, but not all, of the configuration options that the Web Server base registry key HKEY_LOCAL_MACHINE\COMM\HTTPDspecifies. The following table shows the registry values used to restrict requests that a Web site will accept. For general information about multiple Web site support, see Supporting Multiple Web Sites.

Value : type Description

NetworkInterfaces: String

Specifies a set of network interface names, separated by semicolons, which identify the adapter interfaces from which to receive requests. The format of this list is similar to that described in Web Server User Lists. The key similarities supported are the use of -for negation, and the use of *for accepting all requests.

Additionally, there are two special registry values associated with this registry value.

  • If $PUBLIC is set, the Web Server will replace that string with the adapter name of the public interface of an Internet gateway device (set in HKEY_LOCAL_MACHINE\COMM\ConnectionSharing\PublicInterface).

  • If $PRIVATE is set, the Web Server will replace that string with the adapter name of the private interface of an Internet gateway device (set in HKEY_LOCAL_MACHINE\COMM\ConnectionSharing\PrivateInterface).

For example, setting this value to NE20001; $PRIVATEwould allow the Web site to be accessed only from the NE20001 and Public interfaces; however, setting the value to -$PUBLIC;*would allow requests from all interfaces except the public interface to be processed by the Web site.

AllowDefaultSite: REG_DWORD

Default setting is 1. (Default Web site only). If this value is zero, then any request that is not mapped to a non-default Web site will be rejected.

HostedSites: String

Specifies a set of host names, separated by semicolons, that contains the host names that should be mapped to this site. The format of this list is similar to that described in Web Server User Lists. The key similarities supported are the use of -for negation, and the use of *for accepting all host names. For example, the value wince1would allow only the host named wince1access to the site. The value -wince1*would allow all hosts except for wince1.

Note:
For all non-default Web sites, both HostedSitesand NetworkInterfacesmay be set; however, at least one of these two registry values must be set. If neither of these values is set, the Web Server will never map requests to the given Web site. If only one of these values is not set, it will default to *, thereby allowing access to all hosted sites or all network interfaces.

See Also