Path

ez.no / exponential / documentation / configuration / configuration / tips & tricks / several sites with one inst...


Several sites with one installation

If you want subdomains (sub.domain.tld, sub2.domain.tld, ...) to work as separate sites that run on one installation of Exponential 3.x you do the following:

Edit settings/site.ini.php

[SiteAccessSettings]

MatchOrder=host

HostMatchRegexp=^(.+\\..+)\\.domain\\.tld$

HostMatchSubtextPost=\\.domain\\.tld

If you would like to use domains (www.domain1.tld, www.domain2.tld) to work as seprate sites that run on one installation of Exponential 3.x you do the following:

Edit settings/site.ini.php

[SiteAccessSettings]

MatchOrder=host

HostMatchType=map

HostMatchMapItems[]=domain1.net;www

HostMatchMapItems[]=www.domain1.net;www

HostMatchMapItems[]=admin.domain1.net;admin

HostMatchMapItems[]=www.domain2.com;domain2

As you can see this method allows for subdomains and domains (and you don't have to worry about learning regexp).

Then you just create the siteaccess files for each site you want to host. E.g.

settings/siteaccess/sub/site.ini.append

settings/siteaccess/sub2/site.ini.append

In the site.ini.append you can specify any values to differ from the main/default setup, even a completely different database or different design folders. Take a look at settings/siteaccess/demo/site.ini.append and settings/siteaccess/admin/site.ini.append for examples.

Comments

Log in or create a user account to comment.

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
       Manual "modfix"
       Several sites with one installation
       Enable / disable the setup wizard
       Determine if user has to log in
       Change the name of the main script
       Setting default page
       Setting the path to the var directory
       File permissions
       Defining design resources
       Exclude URIs from rewrite
Security
Optimization
Backup & Restore
Troubleshooting


Created

31/03/2003
3:17:47 pm
by Karsten Jennissen

Last updated

07/07/2003
10:00:09 am
by B�rd Farstad

Authors

Karsten Jennissen
B�rd Farstad



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.