Multi-Site Configuration

Search
Feedback

Structr supports running multiple sites. A Site is a collection of pages which are accessible under a common domain.

There are two ways to implement multiple sites on one server:

Either start multiple Structr instances on the same server and route the traffic through a proxy (e.g. haproxy). In this case, make sure there’s no port conflict (change all ports listed in structr.conf to be different in each instance).

Or create multi-site websites within one Structr instance using the built-in type Site which can be assigned a port and/or a hostname, and also a set of pages. Pages which have a Site assigned will only be visible if host (and port, if set) match.

Site objects can be managed through the REST API or in the admin UI’s Data section.

Graph-Browser

About this article
Last change 2017-02-24
Topics FrontendStructr 2.0