Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,110 of 9,110 pages
About the help in other languages
All help pages

Separating the administration from the public site

For IT teams that must keep the editing interface of a public-sector site off the public internet. How siteaccesses separate the administration from the public site, how to give it its own host name, restrict it to your…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/government/operations/hosting/separating-admin-and-public-siteaccesses.md

On this page

Separating the administration from the public site

This page is for IT and security teams in public bodies whose policy says that editing interfaces must not be reachable from the public internet, or only through the organization's network. It answers how Exponential separates the administration from the public site, how to give the administration its own host name and network restriction, and how roles decide who may sign in where. The references are 13.5 The administration siteaccess, 10.2 Siteaccesses and site addresses and the hosting page Restricting the administration.

Contents

  1. Siteaccesses in one paragraph
  2. Give the administration its own host name
  3. Restrict it to your network
  4. Decide who may sign in where
  5. Behind a central proxy
  6. Check it
  7. Checklist

Siteaccesses in one paragraph

A siteaccess is one way into the installation: a name, its settings in settings/siteaccess/<name>/ and a rule for which requests it answers. The installer creates at least the public siteaccess and the administration (usually admin), and writes [SiteAccessSettings] RequireUserLogin=true for the administration, so every page of it asks for a sign-in. Both share the same database; the separation is about addresses, networks and permissions, not data.

Give the administration its own host name

The installer offers three layouts: URL (/admin), host (admin.example.gov) and port. For production the host layout is the one to use: the administration can then be restricted as a unit, with its own virtual host, certificate and firewall rule (10.2).

# settings/override/site.ini.append.php
[SiteAccessSettings]
MatchOrder=host;uri
HostMatchType=map
HostMatchMapItems[]
HostMatchMapItems[]=www.example.gov;site
HostMatchMapItems[]=admin.example.gov;admin

Set [SiteSettings] SiteURL in each siteaccess to its host name, add the names to DNS and to the web server, and clear the INI cache:

php bin/php/ezcache.php --clear-tag=ini --allow-root-user

Many public bodies publish the administration host only in internal DNS. That keeps it out of public view, but treat it as an addition to network restriction, not a replacement.

Restrict it to your network

From the strongest to the simplest (Restricting the administration):

ServerHow
Apacheon the administration's virtual host, Require ip with your networks, or HTTP basic authentication
nginxallow and deny in the administration's server block
Velocityno HTTP authentication of its own: the firewall, a VPN, a reverse proxy in front, or a separate Velocity bound to an internal address
<Location />
    Require ip 203.0.113.0/24 2001:db8::/48
</Location>

The addresses above are documentation examples; use your organization's networks. Editors who work from home then reach the administration through your VPN.

Decide who may sign in where

Signing in is itself a permission: the policy user/login can be limited to siteaccesses. A role page shows it as a sentence such as May log in, on the siteaccesses site and bold (Roles and policies). Use it to make sure that:

  • public accounts (for example people who registered for a newsletter) may sign in on the public siteaccess only;
  • staff roles may sign in on the administration;
  • contractors get the administration only for as long as their contract runs (see the people and permissions pages of this section, for example Role design for contractors).

Exponential also has an editor siteaccess, a simplified editing interface for content editors (Setup wizard and the editor siteaccess). It refuses the role module, so roles are always managed in the administration siteaccess. Give it the same network restriction as the administration.

Behind a central proxy

When a central reverse proxy or load balancer terminates TLS, Exponential believes forwarded headers only from the proxies listed in site.ini [HTTPHeaderSettings] TrustedProxies[]. Without that, HTTPS requests look like plain HTTP and every visitor has the proxy's address, which breaks network-based rules and the audit trail's addresses. See Several web servers behind a load balancer.

Check it

curl -s -o /dev/null -w '%{http_code} %{redirect_url}\n' https://admin.example.gov/
curl -s -o /dev/null -w '%{http_code}\n' https://www.example.gov/

From inside your network, expect a redirect to the sign-in from the administration host and 200 from the public host. From outside, the administration host must not answer at all, or answer 403.

Checklist

  • To do: The administration has its own host name, matched by HostMatchMapItems[].
  • To do: The web server, firewall or proxy restricts that host to your networks or VPN.
  • To do: RequireUserLogin=true is set for the administration siteaccess.
  • To do: user/login policies limit public accounts to the public siteaccess.
  • To do: TrustedProxies[] lists the central proxy, if there is one.
  • To do: A test from outside your network shows no administration.

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.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x