Multi Site

These documentation pages are no longer maintained. Please visit the new documentation site.

If you are setting up several sites with one Exponential 3 installation using site access, you might want to separate the cache and storage directory. This will make things less cluttered and easy to manage when having many sites per installation.

The default settings in Exponential 3 stores cache and files in a common directory for all sites. This can cause problems if you e.g. want to move one of the sites to another server in the future. This can be changed by setting some variables in your site.ini.append for each of your sites.

In this example we will separate storage files and cache for 'myfirst.ezpsite.com', 'admin.myfirst.ezpsite.com', 'mysecond.ezpsite.com' and 'admin.mysecond.ezpsite.com'. After setting up site access (which you can read more about here) we need to set some additional settings in the site.ini.append files.

file: settings/siteaccess/myfirst/site.ini.append

[FileSettings]

StorageDir=myfirst/storage

CacheDir=myfirst/cache
file: settings/siteaccess/admin.myfirst/site.ini.append

[FileSettings]

StorageDir=myfirst/storage

CacheDir=myfirst/cache
file: settings/siteaccess/mysecond/site.ini.append

[FileSettings]

StorageDir=mysecond/storage

CacheDir=mysecond/cache
file: settings/siteaccess/admin.mysecond/site.ini.append

[FileSettings]

StorageDir=mysecond/storage

CacheDir=mysecond/cache

Now we have told Exponential to store myfirsts cache in var/myfirst/cache and myfirsts files in var/mysecond/storage. The same goes for the mysecond site.

Important: It is important that both the user and the admin site has the same storage directory. Otherwise if you e.g. upload a new file using the admin site, the user site will not be able to locate the file because it is looking for it in the wrong directory.

Important: Make sure that Apache has sufficient rights for the folders you create.

Note: The cache for ini-files and translations can not be separated as described in this document

Comments

mistake

"Now we have told Exponential to store myfirsts cache in var/myfirst/cache and myfirsts files in var/MYSECOND/storage"

I think it's more:

"Now we have told Exponential to store myfirst cache in var/myfirst/cache and myfirst files in var/MYFIRST/storage"

Correct link

I believe the page they're trying to link to, is http://ez.no/exponential/documenta...figuration/configuration/site_access .

Broken link in this documentation

The link in the third section of this document (the sentence: "After setting up site access (which you can read more about here)") is broken.

Contents

Configuration

Configuration
    WebDAV setup
    Exponential running on a CGI version o...
    Path prefix
    Locale Settings
    Introduction
    Configuration files
    Site access
    Common settings
    Multi Site
    Directory structure
    Language and charset
    Cron jobs
    Login handler
    Search engine
    Tips & Tricks
Security
Optimization
Backup & Restore
Troubleshooting


Created

03/07/2003
3:10:54 pm
by Bård Farstad

Last updated

18/10/2003
3:21:33 am
by Jaroslav Satkevic

Authors

Bård Farstad
Jo Henrik Endrerud
Jaroslav Satkevic



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.