Separate hosts and siteaccesses
This page is for managers and administrators who decide where the partner portal lives: at its own address such as
partners.example.com, beside the public website in the same installation, or in an installation of its own. It
explains the Exponential concept that makes this possible, the siteaccess, and the trade-offs.
Contents
- The siteaccess in one paragraph
- Three shapes
- A portal beside the public site
- Sign-in only on the portal
- Its own look
- Its own host name and HTTPS
- Test and staging hosts
- Trade-offs
- Checklist
- Related pages
The siteaccess in one paragraph
A siteaccess is one way into an installation: a name, its settings in settings/siteaccess/<name>/, and a rule
for which requests it answers, for example by host name
(10.2 Siteaccesses and site addresses).
The public website, the administration and a partner portal can be three siteaccesses of one installation, each with
its own address, design, start page and sign-in rules.
Three shapes
| Shape | What it means | Fits when |
|---|---|---|
| Portal siteaccess in the same installation | one installation, a partners siteaccess on its own host | content is partly shared with the public site; one team runs both |
| Portal folder of the public site | a members area under the public site's address | small portals, little separation needed (Member registration) |
| Separate installation | its own code, database and users | contracts require strict separation, or a different update rhythm |
A portal beside the public site
The steps for a second site are in Setting up several sites in one installation. For a portal they come down to:
- A folder Partner portal in the content tree; its node becomes the portal's root (
content.ini [NodeSettings] RootNode) and start page (IndexPage). - A siteaccess
partnerswithSiteURL=partners.example.com. - Host matching in
settings/override/site.ini.append.php:MatchOrder=host;uri,HostMatchType=map,HostMatchMapItems[]=partners.example.com;partners. - The host name in DNS, the web server and the certificate.
Shared items, such as product news, can be shown on both sites: an object can have locations in both trees, or be related from a page in the portal (Relations and reuse).
Sign-in only on the portal
Two settings make the portal private while the public site stays open:
- In the portal siteaccess,
[SiteAccessSettings] RequireUserLogin=true: every visitor who is not signed in goes to the login page;AnonymousAccessList[]keeps registration, activation and password reset reachable (What visitors may see, Siteaccess settings). The public siteaccess setsfalse. - The policy
user/logincan be limited by SiteAccess (kernel/user/module.php). Give partner rolesuser/loginforpartners, staff roles for the administration, and members of the public site only the public siteaccess. A role page then reads, for example, May log in, on the siteaccesses partners (Roles and policies, 2).
Warning
Portal content must sit in sections that the public Anonymous role does not read. The default Anonymous role reads Section Standard only (Sections, 2); keep it that way and test logged out on the public host.
Its own look
Each siteaccess has its own SiteDesign and can fall back to other designs
(Designs and the fallback chain). The portal can
look like the brand but plainer, with a menu of the partner areas and a sign-out link. Templates can also differ by
section, for example a different look for the Gold tier
(Sections, 11.1).
Its own host name and HTTPS
The portal's host name goes into DNS, the web server or Velocity, and the certificate; SiteURL must be the address
people use, because mail links are built from it (Going live: hosts, HTTPS and siteaccesses).
Registration mails point into the administration; if its address is not reachable from the mail, set
RegistrationAdminBaseURL (Registration and account approval).
The administration itself can have its own host name and network limits (Restricting the administration).
Test and staging hosts
site.ini [SiteAccessSettings] HostMatchMethod decides how the host map compares hosts: strict (default),
start, end or part. With start, partners.example.com.test.local reaches the portal's siteaccess without
entries of its own. start and part also accept hosts you did not mean, so use them only where the web server
answers for your own hosts (Siteaccess by host prefix).
Trade-offs
| Same installation | Separate installation |
|---|---|
| one kernel and one set of extensions to update and secure | two to update and secure |
| shared content, media and search | content copied or synchronized |
| one user base: staff accounts work in both | separate users: nothing leaks across |
| one backup restores both | independent restores |
| a mistake in roles can expose content | separation by construction |
The same table, for brands, is in Setting up several sites, Trade-offs. Logs and caches can be kept per site (Logs, INI cache and expiry timestamps per site).
Checklist
- To do: Shape chosen and written into the plan.
- To do: Portal siteaccess with
RequireUserLogin=true; public siteaccess withfalse. - To do:
user/loginlimited by siteaccess in every role. - To do: Portal sections absent from the Anonymous role; tested logged out on the public host.
- To do: Host name in DNS, web server and certificate;
SiteURLcorrect. - To do: Registration mail links tested.
Related pages
- Setting up several sites in one installation
- Siteaccess by host prefix, and the redirect to the language
- One installation, many sites
- Customer and partner areas
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.