So far we have focused on creating a new CMS site that has its own database. The site can be installed at the root of the Web site or as an off-root Web application. In this configuration, one IP address and one registered DNS name are required. However, it is sometimes necessary to share the resources, especially in a development environment. For example, you may need to have several independent CMS sites sharing the same IIS site and the same database; or your environment may already have multiple IIS sites that you would like to become CMS sites that share the same database; or it may be required in the development environment that CMS sites share the IIS site, with each site having its own database. All these solutions are possible. We will now determine the setup steps for each of these configurations. Multiple CMS Sites Sharing an IIS Site and a DatabaseYou can have several CMS sites sharing the same database and the same IIS site. Each site is identified by an independent URL, http://<CMS site>. Each site has its own DNS name; the fact that they share a server infrastructure is transparent to the user. One IP address and several registered DNS names are required; all DNS names point to the same IP address mapped to the IIS site. All sites share the same CMS administrator and guest accounts; they also share the same administration tool and the user groups. Assuming that the first CMS site is installed at the root of an IIS site and has already been configured using the steps we have discussed, to add a new CMS site, you need to do the following:
In this scenario, none of the sites can use Secure Sockets Layer (SSL) because HTTP host headers that identify different sites are included in the encrypted client request, and therefore the mapping cannot take place.
NOTE: Refer to Chapter 18 for a full explanation of how this setup works. Sometimes, a developer working on several CMS projects on one machine may want to move from one project to another without reconfiguring the environment. This is usually achieved by creating several CMS Web applications on one IIS site. Each Web application is installed in the virtual directory off the IIS site root; they all share the same database. Each CMS project is identified by a URL pointing to the separate CMS Web application, http://<IIS site>/<CMS application>. The CMS site name is the name of a Web application hosted by the IIS Web site; each site is a separate Web application. In this scenario, one IP address and one DNS name for the IIS site are required. You don't have to enable host headers on the IIS site, and the host headers mapping is disabled in CMS. Assuming that the first CMS Web application is installed off an IIS site root, to create a new CMS site in this way, perform the following tasks:
Multiple CMS Sites Each Using an Independent Dedicated IIS site, Sharing a DatabaseYou can have multiple CMS sites on the same machine that each use a dedicated IIS site while sharing the same database. Each CMS site is identified by an independent URL, http://<CMS site>. Each IIS site has its own DNS name; it may have its own IP address and port number, or they may be shared. If they are shared, then each site is identified by an HTTP host header. As before, the fact that the sites share a server infrastructure is transparent to the user. Because all sites share the database, the sites share the same CMS administrator and guest accounts; they also share the same administration tool and the user groups. Assuming that the first CMS site is installed at the root of an IIS site and has already been created using the steps we have discussed, to add a new CMS site, you need to do the following:
Multiple CMS Sites Sharing an IIS Site, Each Using an Independent Dedicated DatabaseIn a development environment, developers are often required to work on several independent CMS projects. Sometimes, they must have an independent dedicated database for each project. Usually, these requirements come from the organization's security policy. You can have several independent CMS sites that share one IIS site, with each having its own database. Each site is identified by a URL pointing to the separate CMS Web application, http://<IIS site>/<CMS application>. The CMS site name is the name of a Web application hosted by the IIS Web site; each site is a separate Web application. CMS can only use one database at a time. Therefore, you will have to switch between the databases using the DCA. One IP address and one DNS name for the IIS site are required. You don't need to enable HTTP host headers on the IIS site, and host headers mapping is disabled in CMS in this scenario. To create a new CMS site in this way, perform the following tasks, using the detailed instructions provided at the beginning of the chapter:
|