Skip to end of metadata
Go to start of metadata

Author and the public instances run the same Magnolia CMS web application, they are just configured differently. Here are the settings you need to change.

Author to public

  1. Set /server/admin to false.
  2. Grant public instance permissions to the anonymous role.
    • In Access control lists:
      • website workspace, grant read-only access to all website content.
      • dam workspace, grant read-only access to all dam content.
    • In Web access, grant Get & Post access to all URLs but deny access to AdminCentral (/.magnolia & /.magnolia/*), the REST API (/.rest*) and members-only pages of your site (for example, /demo-project/members-area/protected*).
  3. Assign public instance roles to the anonymous system user . Add the public-user-registration-base role. The other default roles are the same on both instances.
  4. Set /modules/ui-admincentral/virtualURIMapping/default/toURI to your start page, for example. The system does not know which page, or which site in a multisite configuration, visitors should be directed to by default. Set toURI to the site root page or a page you want visitors to land on. For example, in the demo-project toURI is set to redirect:/demo-project.html. See URI mapping for help.

Public to author

  1. Set /server/admin to true.
  2. Grant author instance permissions the anonymous role.
    • In Access control lists:
      • website workspace, deny access to all website content.
      • dam workspace, delete (trash) the default permission.
    • In Web access, deny access to all URLs. Trash the defaults and replace with deny * and deny /.magnolia*.
  3. Assign author instance roles to the anonymous system user. Remove the public-user-registration-base role. The other default roles are the same on both instances.
  4. Configure public instances as subscribers to make the activation mechanism work.
  5. Go to Tools > Activation tools and generate a new public key.
  6. Copy the new key and paste it in /server/activation/publicKey on the public instances.
  • No labels