Warning If you edit the metabase incorrectly, you can cause serious problems that may require you to reinstall any product that uses the metabase. Microsoft cannot guarantee that problems that result if you incorrectly edit the metabase can be solved. Edit the metabase at your own risk.
Note Always back up the metabase before you edit it.
If you must use Unicode host names on an intranet, enter the
host header name directly in the metabase.
Note If you want to make changes to the metabase while IIS is running,
you must enable the edit-while-running feature as follows:
- In the ISM, right-click the server name, and then click
Properties.
- Click to select the Enable Direct Metabase
Edit check box, and then click OK.
To enter a host header name in Metabase.xml, use one of the
following methods:
- Create a host header without Unicode characters and edit
the header:
- In the ISM, right-click the Web site, and then click
Properties.
- On the Web Site tab, click
Advanced.
- Under Multiple Identities for this Web
site, click Add.
- Type the IP address, TCP port, and a host header value
with Unicode characters.
- Click OK on each screen to close all
dialog boxes.
- In Windows Explorer, right-click
\System32\Inetsrv\Metabase.xml, and then click
Edit to open the file in Notepad.
- Click Edit, click
Find, type the name that you used as a host header value in
step 4, and then click Find Next
- Edit the host header to add the Unicode characters.
Exit Notepad and save the changes.
- Create the host header by using the Adsuil.vbs command line
script. In this example, you set a host header name of "www.@mysite.com" on the
default Web site:
- Click Start, click
Run, and then type cmd.
- At the command prompt, type the following, and then
press ENTER:
cd c:\inetpub\adminscripts
- Type the following, and then press ENTER:
adsutil Set W3SVC/1/ServerBindings ":80:"
":80:www.@mysite.com"
- Create the host header directly in the metabase:
- In Windows Explorer, right-click
\System32\Inetsrv\Metabase.xml, and then click
Edit to open the file in Notepad.
- Click Edit, click
Find, and then type the name that you used to identify the
site (for example, Default Web Site), and then click Find
Next. The section looks similar to the following:
</IIsWebService>
<IIsWebServer Location="/LM/W3SVC/1"
AppPoolId="DefaultAppPool"
DefaultDoc="Default.htm,Default.asp,index.htm,iisstart.htm,Default.aspx"
LogPluginClsid="{FF160663-DE82-11CF-BC0A-00AA006111E0}"
ServerBindings=":80: "
ServerComment="Default Web Site"
- If you want to add a host header name of
"www.@mysite.com", edit Metabase.xml to look similar to this:
</IIsWebService>
<IIsWebServer Location="/LM/W3SVC/1"
AppPoolId="DefaultAppPool"
DefaultDoc="Default.htm,Default.asp,index.htm,iisstart.htm,Default.aspx"
LogPluginClsid="{FF160663-DE82-11CF-BC0A-00AA006111E0}"
ServerBindings=":80:
:80:www.@mysite.com"
ServerComment="Default Web Site"
Note After you have entered a Unicode character by using any of these
methods, all editing of the host header must be done by editing Metabase.xml,
either in Notepad or by using Adsutil.vbs. If you click
OK in
the user interface, you receive the error message that is described in the
"Symptoms" section.