Liferay architecture

One Liferay, many sites

How to run a public website, a customer portal and an admin console on one Liferay DXP installation: the admin-instance pattern for virtual instances, with the trade-offs to plan for.

Liferay Authorized Solution Partner

As a Liferay Authorized Solution Partner, ATNR designs, builds and supports Liferay DXP solutions.

By Charles Brewton, ATNR · November 2026

Most organizations eventually need more than one web experience: a public marketing site, a logged-in customer portal, maybe a partner or employee portal. The instinct is often to stand up a separate Liferay environment for each one. There is a better way.

The pattern we use is simple: reserve the default virtual instance for administrators only, and give every real site or portal its own virtual instance. One Liferay DXP installation, one set of infrastructure, many fully separated experiences, and a clean line between who runs the platform and who runs the sites.

The pattern

A Liferay virtual instance is a fully separate portal running inside the same installation. Each instance has its own users, roles, sites, content, pages, and instance settings, and each answers on its own domain. Under the hood they share the application server, database, search engine, and file store.

Every installation starts with one instance: the default instance created at setup. Its administrators are special. They are the only users who can reach server-wide tools that affect every instance at once.

The pattern treats that default instance as the platform's control room rather than a public site:

  • Default instance = admin-only. No public content, no customer accounts. It holds platform administrators plus the documentation they need to run the system.
  • One virtual instance per site or portal. Each public site, customer portal, or partner portal gets its own instance, its own domain, and its own instance-level administrators.
  • Separation of duties by design. Platform admins manage the server. Site admins manage their instance. Neither steps on the other.

Identity and email are instance-specific too. Each virtual instance can use its own single sign-on provider or login source, such as SAML, OpenID Connect, or LDAP, so admins, the public, and customers can each sign in the way that suits them. Each instance also has its own email service configuration, including sender name, address, and notification templates, so messages from the customer portal never look like they came from the admin site.

A real example: ATNR

ATNR runs three distinct audiences on one Liferay DXP installation, one instance each.

One Liferay DXP installation, one subscription

Admin hostname

Default instance, admins only

Help guides for admins
Architecture diagrams
Script console, logs, reindex

www.atnr.com

Virtual instance, public

Company website
Open to the public
Managed by its own site admins

customer.atnr.com

Virtual instance, customers

Customer login
Create test API keys
Buy production API keys

Shared: app servers, database, search engine, file store

  • An admin-only hostname (default instance). Admins only. It holds help guides and architecture diagrams for the people who run the platform, and it is the only place server-level tools are used.
  • www.atnr.com (virtual instance). The public company website, including this page.
  • customer.atnr.com (virtual instance). A customer portal where customers sign in, create test API keys for the ATNR AI App Builder for Liferay, or purchase production API keys.

Each site has its own users, look, and admins. Customers never see the admin instance, and website editors never touch customer accounts.

Why it works: you get more from one subscription

If ATNR ran its admin site, company website, and customer portal as three separate Liferay environments, each would need its own full stack and its own DXP subscription.

Three separate portalsOne installation, three instances
DXP subscriptions31
App servers, databases, search clusters3 of each1 of each
Upgrades and patches3 timesOnce
Monitoring and backups3 setups1 setup
Custom modules and themesDeployed 3 timesDeployed once, used by any instance

Multiply that across dev, UAT, and production environments and the savings compound. Adding a fourth portal later is a new instance and a DNS record, not a new procurement cycle.

Subscription terms vary by contract, so confirm with your Liferay account team how your agreement treats virtual instances before you plan around it.

Why it works: dangerous tools stay in one locked room

Some Liferay admin tools act on the whole server, not just one site. In a shared instance, anyone who needs admin rights for routine site settings sits uncomfortably close to them. With this pattern, those tools live only in the admin instance.

Kept in the admin instanceDelegated to each site instance
Groovy script consoleInstance settings (branding, email, authentication)
Log level changesUsers, roles, and permissions
Search reindexing and index actionsSites, pages, and content
System Settings that apply server-wideForms, objects, and workflows for that portal
Server Administration and cache controlsSite-level SEO and analytics

The result is a smaller blast radius. A marketing admin on www.atnr.com can manage the website freely, but cannot run a script against the database or flood the logs with debug output. A mistake in one portal's settings stays in that portal.

It also makes audits easier. The list of people who can touch the server is exactly the list of users in the admin instance.

Trade-offs to plan for

The pattern is not free. Shared infrastructure means shared fate, so plan for these up front:

  • Capacity is shared. A traffic spike on the public site uses the same JVMs and database as the customer portal. Size and scale the cluster for the combined load.
  • Upgrades move together. Every instance runs the same Liferay version and the same deployed modules. You cannot upgrade the customer portal alone.
  • Deployments are global. A custom module is installed for the whole server. Use configuration or instance-scoped settings to control where it is active.
  • Downtime is shared. A restart or outage affects every instance, so maintenance windows need to suit all of them.
  • Users do not cross instances. A person who needs access to two portals has two separate accounts unless you add single sign-on in front.
  • Hard isolation requirements may rule it out. If a regulator or contract demands separate databases or infrastructure, separate environments are still the answer.

Getting started

The best time to adopt this pattern is at install, before the default instance accumulates public content. The steps:

  1. Point an admin-only hostname at the default instance and restrict it to your network or VPN if you can.
  2. Keep the default instance's user list to platform administrators only. Turn off self-registration.
  3. Add a site there for admin documentation: runbooks, help guides, and architecture diagrams.
  4. Create a virtual instance for each site or portal, each with its own domain, mail domain, and instance administrator.
  5. Give site teams admin rights in their own instance only, never in the default instance.
  6. Document which instance owns which domain, so DNS, certificates, and load balancer rules stay in sync.

One platform, one subscription, one control room, and as many portals as the business needs. For ATNR it has meant a single stack to run while each audience gets an experience built just for them.

Coming soon

Planning a multi-site Liferay platform?

ATNR designs, builds and runs Liferay DXP solutions as an Authorized Solution Partner. Talk to us about the right instance layout for your organization.