If you intend to host a large number of low-traffic Web sites that share the same application code (and views), but have their own HTML design and content, you can host all such sites in a single Web application. This approach helps to reduce the total number of resources used by your Web and application server.
Procedure
- Access your Presentation Server machine.
- Start IIS Manager on this machine.
- In the tree on the left, navigate to the IIS Web application in which you want to host multiple Web sites, and select it.
- In the Actions panel on the right. in the Edit Site area, select Bindings.
The Site Bindings dialog opens.
- Select Add to add a Web site.
The Add Site Binding dialog opens.
- Specify the Web site by specifying one or more of Type, IP address, Port and/or Host name, and click OK to add the site and return to the Site Bindings dialog.
- Repeat steps 5 and 6 as needed to add more Web sites to the Web application.
- In the Site Bindings dialog, click Close to return to the main IIS Manager window.
- Close IIS Manager.
- If you are using SDL Tridion 2013 SP1:
- Access the bin\config\ subfolder of your Web application.
- Open cd_dynamic_conf.xml for editing.
- Follow the path .
- Add a
Publication subelement and set its Id attribute to the Publication ID of the Publication you want to associate with one of your hosted URLs.
- Inside the
Publication element, create a Host subelement and set the following attributes:
Domain - the domain name of your site.
Port - the specific port on which this site runs.
Protocol - the protocol for the IIS Web application, http or https.
Path - the relative path at which you want the Publication to be hosted (defaults to the root path if not specified).
- Save and close cd_dynamic_conf.xml.
- Restart your Web application.
- If you are using SDL Web 8, the Topology Manager does all the work for you.
- To refresh only one site hosted in your Web application, open a Web browser and access SITE/admin/refresh, where SITE is the URL of the specific site.