Multi doman website

Author Message

David Lafonte

Friday 20 June 2008 9:15:58 pm

Hello there
I try to find help on forum but so far I was not lucky
Here is my plan
I have hosting where I can have unlimited domains
My main domain like www.mydomain.com
But I can have like I said unlimited domain
I would like to setup few more domain using single installation and single database of ez publisher
Like
www.mydomain.com
www.mydomain1.com
www.mydomain2.com
Basically my main domain is located in /home/mydomain.com/public_html/
That is folder of www.mydomain.com
My other domains are in

/home/mydomain.com/public_html/mydomain1.com www.mydomain1.com

/home/mydomain.com/public_html/ mydomain2.com www.mydomain2.com

/home/mydomain.com/public_html/ mydomain3.com www.mydomain3.com
Any idea how I can setup this
So if I enter example
www.mydomain2.com go to www.mydomain2.com using installation single installation ez publish
Any idea, suggestion please
Thanks

Greg McAvoy-Jensen

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

David Lafonte

Saturday 21 June 2008 9:02:30 am

So if I enter my domain www.mydomain.com.
Do I need do some web host setup?
Like apache conf file

Greg McAvoy-Jensen

Saturday 21 June 2008 9:29:57 am

You'd just need one virtual host setup for the whole set--just include something like (I'm using Apache 2):

DocumentRoot /home/mydomain.com/public_html/
    ServerName www.mydomain.com
    ServerAlias www.mydomain1.com
    ServerAlias www.mydomain2.com

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

David Lafonte

Saturday 21 June 2008 10:02:15 am

Thanks for reply
I do not have access to apache conf because i am on shared hosting
can i do something simillar in .htaccess
Thanks

Donat Fritschy

Monday 23 June 2008 9:55:57 am

Your hosting provider will most certainly define the ServerAlias directive for you.

Alternatively, you can stick with the different site roots and put this directive into the .htaccess file

Redirect / http://www.example.com/ 

http://www.webmanufaktur.ch - Developers united in eZ Publish: http://www.cjw-network.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 02:00:57
Script start
Timing: Jan 18 2025 02:00:57
Module start 'layout'
Timing: Jan 18 2025 02:00:57
Module start 'content'
Timing: Jan 18 2025 02:00:58
Module end 'content'
Timing: Jan 18 2025 02:00:58
Script end

Main resources:

Total runtime1.0429 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 587.9141152.6250
Module start 'layout' 0.00520.0032 740.539139.4453
Module start 'content' 0.00841.0328 779.9844624.1797
Module end 'content' 1.04120.0017 1,404.164116.1719
Script end 1.0429  1,420.3359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3108160.0002
Check MTime0.00130.1241160.0001
Mysql Total
Database connection0.00080.081010.0008
Mysqli_queries0.972893.2723680.0143
Looping result0.00070.0686660.0000
Template Total1.013997.220.5070
Template load0.00180.175720.0009
Template processing1.012197.040820.5060
Template load and register function0.00020.022010.0002
states
state_id_array0.00080.075110.0008
state_identifier_array0.00120.113320.0006
Override
Cache load0.00160.1578510.0000
Sytem overhead
Fetch class attribute can translate value0.00100.091530.0003
Fetch class attribute name0.00200.196080.0003
XML
Image XML parsing0.00270.261430.0009
class_abstraction
Instantiating content class attribute0.00000.001790.0000
General
dbfile0.00280.2732240.0001
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs