Many older browsers do not support the use of host header names. If you are using host header names to host multiple sites on the same IP address and port, implementing the following two procedures provides a way for visitors with older browsers that have the ability to pass cookies to reach the correct site.
To configure the registryHKEY_LOCAL_MACHINE\SYSTEM \CurrentControlSet \Services \W3SVC \Parameters
DLCSupport Set the value of this parameter to 1 to enable support for browsers that are capable of passing cookies.
DLCMenuString This parameter supplies the special prefix of URLs that apply to the host menu. This is a special string that the server checks all down-level requests (that is, requests without a real HOST header) against. If the URL is prefixed by this string, then it is handled as a host menu item. For example, DLCMenuString can be set to "/HostMenu". Note the initial forward slash in the string.
DLCHostNameString This parameter supplies the host name of the Web site that contains the index documents. For example, if your menu page resides on www.products1.com, this parameter is set to www.products1.com. Note that all files, such as images and backgrounds, must be located on the same Web site.
DLCCookieMenuDocumentString This parameter is the name of the actual host menu document to be sent to older browsers that support cookies. For example, this parameter could be "/scripts/cookies.asp".
DLCCookieNameString This parameter specifies the name of the special cookie to be interpreted by the server as representing a pseudo host header.
To redirect the browser
<html> <head><title>Server Selection Page</title></head> <!-- This script detects whether the user has clicked one of the Web site links below and adds the pseudo header to a cookie that is passed with all further requests. --> <% IF Request("Redirect")="Yes" THEN response.addheader "Set-Cookie", "PseudoHost="+request.querystring("Host")+"; path=/; domain="+request.querystring("Host") response.redirect("http://"+request.querystring("Host")+request.querystring("NewLocation")) END IF%> <h1>Welcome!</h1> <p>Replace the text in this block with information about you, your department, or your company. Include an email address or other means of contacting you.</p> <!-- This script detects whether the browser is capable of using cookies. If the browser can use cookies, then a menu of the available sites is displayed. If the browser is not capable of using cookies, then a message advising a browser upgrade is displayed. --> <% Set objBrowser=Server.CreateObject("MSWC.BrowserType") 'instantiate browser cap. component IF objBrowser.Cookies THEN 'verify cookies: true or false %> <p>The following Web sites are available here:</p> <ul> <li><a href="/HostMenu/Scripts/Index.asp?Redirect=Yes&Host=www.server1.com&NewLocation=<%=request.querystring()%>">Try Server 1</a> <li><a href="/HostMenu/Scripts/Index.asp?Redirect=Yes&Host=www.server2.com&NewLocation=<%=request.querystring()%>">Try Server 2</a><br> </ul> <% ELSE %> <p>Your browser does not support the technology needed to view the sites at this address. You can receive a free upgrade for your browser by visiting <a href="http://www.microsoft.com/ie/">www.microsoft.com/ie/</a></p> <% END IF %> </body> </html>