The site manager is available for administrators only. It is not available at all in virtual sites. It is used to manage virtual sites and to map domains to sites. If no virtual sites are defined, this page can be used to define the first one. Otherwise, more options are available.
Use directory names as domain names: if true, names of the directories that contain virtual sites will be taken into account when mapping domains to sites;
Automatically manage the "www." prefix: if true, an additional mapping will be used for each domain name specified, to map the same domain with the www prefix added. This parameter applies to all domain names defined;
Domain aliases for the main website: a comma-separated list of domain names that must point to the main website. If no domain names are specified, all domain names that are not mapped to other sites will point to the main site. If at least a domain is specified and an unlisted domain is requested, MeshCMS will send a server error as response;
CMS enabled: a flag that indicates that the CMS is active in that website (otherwise it is just a static website);
Block JSPs: allows to limit the usage of JSP pages in that site for security reasons. It relies on a code filter that should allow harmless operations only Currently, it allows to:
use the MeshCMS taglib with the
prefix;cms
use the page
JSP directive;
use JSP comments;
use HTML (tags, doctypes and comments).
This block may result in a strong limit for the website, since themes can only use the taglib and legal custom modules are nearly useless.
After these options, a table of virtual sites follows. For each site the directory name is shown and a check indicates that the CMS is active for that site. It is possible to add or modify a comma-separated list of domains that will be mapped to that site.
At the end of the list, a blank row is available to create a new site. You must specify the directory name and optionally add aliases and enable the CMS.
Please be careful when specifying domain names: if a domain is mapped to more than one site, it is hard to know which one will be associated to that domain.