Configuring Virtual Hosts Site URLs

A virtual host connects a domain name (e.g., to a Site. This can be a full domain or a subdomain (e.g. You can use this to host a number of websites as separate Sites on one Liferay DXP server. Follow these steps to configure virtual hosts Site URLs:

  1. With your provider, set the DNS name to point to your Liferay DXP instance’s IP address.

  2. Inside Liferay DXP, open the Site Menu (Site Menu), expand Configuration, and go to Site SettingsSite ConfigurationSite URL.

    Under Site Configuration, go to Site URL.

  3. Enter the desired domain or subdomain in the Virtual Host field (e.g.,,

    You can point virtual hosts to specific locales.


    A domain can only be applied to a single Site. You can’t map a single domain to multiple Sites.

  4. (Optional) Since Liferay 7.3 GA2, click the Plus button (Plus Button) for additional Virtual Host domains.

  5. (Optional) Since Liferay 7.3 GA2, select a language for each virtual host. If you have a domain for each translation of a Site, you can add a virtual host for each domain.


    Locales are constrained to the Site’s available languages, if defined. If a locale isn’t specified, the default locale for the Site is used. The locale applies to Sites for all associated domains.

    You can add multiple virtual hosts to point to different domains.

  6. Click Save.

Your site is now accessible using the configured domain.

Additional Information