Upon initial installation of Titan CMS, a globe will be created in the Titan CMS Workstation by default. A website will also be created in IIS that corresponds to that globe. As your site grows, you may find a need to create new globes in the Titan CMS Workstation. You may also want to use different URLs to access these globes. In this situation it is essential to understand the relationship between IIS and Titan CMS.
While this article provides a high-level overview of the IIS/Titan CMS relationship, it does not provide step-by-step instructions for creating new websites in IIS. For these instructions, please see Adding New Titan Sites to IIS. For information on creating new websites in Titan CMS, please see How to Create a New Website.
What is an IIS website?
Before you can understand how IIS and Titan CMS globes fit together, it is important to have a basic understanding of IIS and how it works. A website in IIS is exactly that – a website that is identified via a URL. When your users type in the URL of your website into their browser, that request is routed to a web server. Your Titan CMS web server will have IIS installed, which knows how to handle that request. It looks at the page requested by the user, processes the request, and then sends the content back to the user’s browser.
For any particular website, you can use IIS to configure URLs, also called host headers, the website will use (e.g. www.Titan CMS.com). You can also specify default documents, IP addresses and ports the website will run on, etc. You can create multiple websites in IIS and manage them all in one location. In most cases, each globe in your Titan CMS Workstation is a unique website that you are creating. Thus, it is common for each globe to have a corresponding website in IIS.
One of the most important parts of a website in IIS, as it relates to this article, is the concept of a default document. Every website you create in IIS for Titan CMS should have a default document specified. The default document for a website is the page that IIS will load when the user types in the site’s URL with no page explicitly specified. For example, your IIS website is using a host header of www.Titan CMS.com, and your default document is specified as Default.aspx. When the user types in www.Titan CMS.com into their browser, IIS will automatically load up the default.aspx page. If a user types www.Titan CMS.com/support.htm into their browser, this overrides the default document and IIS will load the page specified.
When do I need more than one IIS website?
Depending on your needs, you may or may not need multiple sites in IIS. If a new URL that you want to use will require a different default document than the existing website, you will need to create a new website in IIS. IIS allows you to specify multiple URLs for the same site. For example, you might want www.Titan CMS.com and www.Titan CMS.org both to point to the same home page or globe. In this case, they both need the same default document, and you can add URLs to the same website in IIS.
The link, then, between an IIS site and a Titan CMS globe is very simple – it’s all in the default document configuration. When you set up a new IIS website for a globe, you simply configure the default document for that website to be the home page for that particular globe.