Friday 04 June 2004 9:54:05 am
Hi, First, EZP have three setup types: URL setup that means having site's URL like : http://mydomain.com/myfirstsite
http://mydomain.com/mysecondsite
Hostname Setup that means having site's URL like : http://myfirstsite.mydomain.com
http://mysecondsite.mydomain.com
Last, Port Setup that means having site's URL lik : http://mydomain.com:80 //uses port 80 for your first site
http://mydomain.com:81
//uses port 81 for your second site
Basically you will need to configure at least three configuration files :
1) settings/override/site.ini.append
2) settings/siteaccess/myfirstsite/site.ini.append 3) settings/siteaccess/mysecondsite/site.ini.append First, you will need to configure file number 1 above, for hostname setup settings could be like this : [SiteSettings]
DefaultAccess=myfirstsite
SiteList[]=myfirstsite
SiteList[]=mysecondsite
[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]=myfirstsite
AvailableSiteAccessList[]=mysecondsite
MatchOrder=host
HostMatchMapItems[]=myfirstsite.mydomain.com;myfirstsite
HostMatchMapItems[]=mysecondsite.mydomain.com;mysecondsite
Note the two last lines of code above, for EZP it does the trick of linking your site ( siteaccess) to your domain or subdomain On the other hand, you will need to configure files 2 and 3 above (one file for each site that you want at your multiple site setup), assuming this is for 'myfirstsite', you will have:
[DatabaseSettings]
... //Here myfirstsite database access data
[SiteSettings]
SiteName= Title of myfirstsite
SiteURL=myfirstsite.mydomain.com
//Other necessary stuff
[DesignSettings]
... //myfirstsite templates folder ( .tpl, .css files)
[RegionalSettings]
... //myfirstsite primary language settings (English or French or ...)
[FileSettings]
... //where are myfirstsite files, cache, etc
In conclusion, siteaccess is the EZP mechanism to have multiple sites sharing same EZP installation, regarding Apache web server setup take a look at http://ez.no/ez_publish/documentation/installation/virtual_host_setup
Lazaro
... http://www.mzbusiness.com
Lazaro
http://www.mzbusiness.com
|