Accessing the CMS Site by a Root URL

When the CMS site is installed, you may want to access it by a root URL that contains only the server DNS (or WINS) name (i.e., http://<CMS site>). There are additional configuration steps required to make this happen. These steps are different depending on whether your site is installed at the root of the IIS site or off root.

If your new CMS site is at the root of the IIS site, you are likely to expect that your default CMS page will be returned to the user as a result of accessing the URL http://<CMS site DNS name>. However, this is not the case; regardless of the IIS default document configuration, to return the default home page, the URL has to specify the name of the default page explicitly (i.e., http://<CMS site>/<home page>). This is not very user friendly, so let's change it.

To enable the CMS site root requests, we need to configure CMS to enable the host headers mapping. CMS host headers mapping provides the ability to host several CMS Web sites, with different domain names, on the same CMS server. It also enables the CMS site root requests. You don't have to host multiple sites to use the host headers mapping; it can be used in order to enable CMS site root requests for a single site.

NOTE: CMS host headers mapping doesn't necessarily require HTTP host header identification to be enabled on your IIS site. CMS host headers mapping is implemented as an ISAPI filter. Regardless of your IIS virtual site configuration, you may use the host headers mapping for the CMS site. We will look into CMS host headers mapping in detail in Chapter 18.


To configure CMS host headers mapping, perform the following two steps:

  • Using the SCA, enable CMS to map host headers into channel names. To do that, select the General tab (Figure 8-23); click Configure; in the General Configuration window in the Map Channel Names to Host Header Names drop-down list, select Yes (Figure 8-32); click OK.

    Figure 8-32. SCA General Configuration window

    graphics/08fig32.gif

  • Using the Site Manager, create a top-level channel with the same name as the DNS name of the site (which is the value of the host header). The default page in this channel will be sent back as a response to the CMS site root request. To do that, open the Site Manager (Start > Programs > Microsoft Content Management Server > Site Manager); type in the initial CMS administrator credentials; right-click the Channels node in the middle pane (Figure 8-33) and select New Channel. In the Name box, type the DNS name for your CMS site (for example, www.botsconsulting.com), and click OK (Figure 8-34). Close the Site Manager.

    Figure 8-33. Creating a new top-level channel in the Site Manager

    graphics/08fig33.gif

    Figure 8-34. Top-level channel that is mapped to the HTTP host header

    graphics/08fig34.gif

NOTE: We will look into creating channels in the Site Manager for the new CMS site in Chapter 9. Refer to Chapter 16 for a detailed discussion about working with channels.


We have configured your new CMS site to return the home page to the root URL.

If your new CMS site is an off-root Web application, your default CMS page will be returned to the user as a result of accessing the URL http://<IIS site>/<CMS application>. This is expected behavior; however, you may want to change it. In this scenario, the request to the root is handled by IIS. If you want the user to access your CMS site by the root URL http://<IIS site>, you will have to provide redirection from the root to /<CMS application>.



Microsoft Content Management Server 2002. A Complete Guide
Microsoft Content Management Server 2002: A Complete Guide
ISBN: 0321194446
EAN: 2147483647
Year: 2003
Pages: 298

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net