You are here: Administrators Reference > Site Administration > Static Content Generation > Cache/Static Settings > Link to Appropriate Server

 

Link to the Appropriate Server

It is important to understand how CommonSpot handles linking to the various pages based on their state, and the server from which the current request is being serviced. The fundamental idea is that CommonSpot keeps track of the state (either static or dynamic) for each page and appropriately updates all links to the page to point to either the static server or dynamic server. There should be no redirecting, or serving of static content from the dynamic server.

Under the most complex scenario (generating static content on the authoring server for a site that is replicated to a Read –Only Production Server that is also generating static content), the Static Content Generation module handles 5 URLs:

Public Static URL and Public Dynamic URL (served from the target (a.k.a. read-only) server) – for example www.example.com and www1.example.com respectively.

Authoring URL, Test Static URL, and Test Dynamic URL (served from the authoring server) – for example authoring.example.com, teststatic.example.com, and testdynamic.example.com

Whenever a request comes in through the authoring URL , CommonSpot updates all links to refer to the authoring server (i.e., all URLs include the prefix http://authoring.example.com), as there is no need to switch to either production or test URLs when authoring. For example, using our sample site, all links to the static Home Page would have the URL http://authoring.example.com/index.cfm, and all links on all pages to the dynamic Members Only page would have the URL http://authoring.example.com/members.cfm.

When the request comes in to either of the production URLs, CommonSpot appropriately links to the correct static or dynamic servers. For example, all links on all pages to the static Home Page in our example site (index.cfm) point to http://www.example.com/index.cfm, while all links on all pages to the dynamic Members Only page (members.cfm) point to http://www1.example.com/members.cfm.

When receiving requests for either of the testing URLs, CommonSpot appropriately links to the correct testing static or testing dynamic servers. For example, all links on all pages to the static home page in our example site (index.cfm) will point to http://teststatic.example.com/index.cfm, and all links on all pages to the dynamic Members Only page (members.cfm) will point to http://testdynamic.example.com/members.cfm.

 

Related Links

Redirect Files

Static File Generation


You can download PDF versions of the Content Contributor's, Administrator's, and Elements Reference documents from the support section of paperthin.com (requires login).


For technical support:

http://www.paperthin.com/support/