Friday 20 June 2008 9:41:27 pm
I wouldn't set up new directories for each new domain (for example, /home/mydomain.com/public_html/mydomain1.com). Everything should point to index.html in the root eZ Publish directory; let eZ Publish figure things out from there. The way to differentiate multiple domains on one eZ Publish installation is to use a separate "siteaccess" for each domain. So in settings/siteaccess, add an additional directory for each site access; in each directory, put a site.ini.append.php tailored to that particular domain. It will give you the flexibility to decide whether they all use the same database and var directory. In settings/override/site.ini.append.php, be sure each of your new siteaccesses is recognized. Also, this is where you specify which domain corresponds to which siteaccess--by use of the MatchOrder directive. If you happen to name each site access the same as the domain (without the www.), then your configuration would look like this: [SiteAccessSettings]
MatchOrder=host
HostMatchType=map
HostMatchMapItems[]=www.mydomain.com; mydomain
HostMatchMapItems[]=www.mydomain1.com; mydomain1
HostMatchMapItems[]=www.mydomain2.com; mydomain2
Of course, you'll need to also include the admin interface. You can read more at http://ez.no/doc/ez_publish/technical_manual/4_0/concepts_and_basics/configuration/access_methods.
Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog
|