Message-ID: <1516567871.3194.1485852347155.JavaMail.confluence@ip-10-127-227-164> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_3193_1493455919.1485852347155" ------=_Part_3193_1493455919.1485852347155 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html Multisite using content_root

Multisite using content_root

With eZ Platform it is possible to serve multiple, completely di= fferent sites using one eZ Platform instance and database.

Each site will have its own content root, at a lower level than the defa= ult one (location number 2). One backoffice can be used for each site, but = it is also possible to use a global one.

This feature is a reimplementation of the PathPrefi= x one that existed in eZ Publish Legacy.

Configuration

The feature is configured in ezplatform.yml, either at site= access or siteaccess group level:

=20
ezpublish:
=09system:
=09=09ezdemo_site_group:
=09=09=09content:
=09=09=09=09tree_root:
                    # Root locationId. Default is top locationId
=09=09=09=09=09location_id: 123
                    # Every URL aliases starting with those prefixes will b=
e considered=20
                    # being outside of the subtree starting at root_locatio=
n.
                    # Default value is an empty array.
                    # Prefixes are not case sensitive.
=09=09=09=09=09excluded_uri_prefixes: [ /media, /images ]
=20

c= ontent.tree_root.location_id

This parameter sets the Location ID of the content root. The API is jail= ed within this root, and nothing above this level will be accessible by def= ault. This parameter can be filtered using the excluded_uri_prefixes<= /code> parameter described below.

content.tree_root.excluded_uri_prefixes

Use this parameter to exclude a list of URI from the root jail defined u= sing location_id described above. Add as many locations p= athString as you like. In the example above, the Media and Images folders w= ill be accessible using their own URI even though they're not below t= ree_root.location_id.

Note

Leading slashes (/) are automatically trimmed internally by= eZ Platform, so they can be ignored.

------=_Part_3193_1493455919.1485852347155--