Multiple sites and siteaccesses, one installation.

Author Message

Martin Kot

Thursday 15 May 2008 12:32:40 am

Hello,

I'm wondering if it's possible to set up multiple sites in one installation directory of eZ. Each site has it's own domain, but might have several site accesses for different languages. I've done this before based on host matching, as outlined in this old document:
http://ez.no/ezpublish/documentation/configuration/configuration/tips_tricks/several_sites_with_one_installation

Problem with this approach is that each site access requires it's own hostname. Let's say I already have www.example.com/no and www.example.com/en, then I have to use en.example.com and no.example.com.

Would it be possible to combine host based matching with uri-matching? I tried this approach before, but couldn't get it to work in eZ 3.9 at least. Any help on how to achieve this is welcome. Please include sample ini-settings if possible. I'm going to upgrade all the current sites to version 4.0.

Andreas Kaiser

Friday 16 May 2008 1:30:23 am

I think by default this is not possible in ezp 4 or 3.9.x.

In multiple sites with one installation we use host setup, but it's true that a model like:

ezp installation:

-> site1.com
----> site1.com/eng
----> site2.com/de

-> site2.com
----> site2.com/eng
----> site2.com/de

is more frequent in the web (logical?) than using subdomains for every language. To prevent subdomains like eng.site.com we recommend our users to use specific domains for each language (for example with different country code top-level domain)

In the forum there are various posts about issues mixing host/uri and, if I'm not wrong, no one solved it:

http://ez.no/developer/forum/setup_design/problem_with_mixed_matchorder_host_uri/re_problem_with_mixed_matchorder_host_uri
http://ez.no/developer/forum/install_configuration/siteaccesssettings_matchorder_s_combination/re_siteaccesssettings_matchorder_s_combination

eZ Partner in Madrid (Spain)
Web: http://www.atela.net/

Martin Kot

Monday 26 May 2008 6:09:41 am

Thank you for your reply. I guess I'll go with only host-matching then, but I'll try out quickly if something has changed and made it possible to mix and match host and uri. If it's possible, I'll post my response here. Just noticed another thread about the same issue.

Andreas Kaiser

Tuesday 27 May 2008 3:50:11 am

<i>...to mix and match host and uri. If it's possible...</i>

At this moment mixing host and uri is not possible, there are various post in this forum about people trying it... perhaps you have luck - if so post your solution! ;)

eZ Partner in Madrid (Spain)
Web: http://www.atela.net/

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 11:08:03
Script start
Timing: Jan 18 2025 11:08:03
Module start 'layout'
Timing: Jan 18 2025 11:08:03
Module start 'content'
Timing: Jan 18 2025 11:08:03
Module end 'content'
Timing: Jan 18 2025 11:08:03
Script end

Main resources:

Total runtime0.6836 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 588.1641152.6563
Module start 'layout' 0.00690.0041 740.820339.5078
Module start 'content' 0.01100.6708 780.3281551.5234
Module end 'content' 0.68180.0017 1,331.851612.1094
Script end 0.6835  1,343.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.5924160.0003
Check MTime0.00190.2752160.0001
Mysql Total
Database connection0.00060.094710.0006
Mysqli_queries0.627691.8173600.0105
Looping result0.00060.0841580.0000
Template Total0.645994.520.3230
Template load0.00210.302420.0010
Template processing0.643894.190720.3219
Template load and register function0.00010.021710.0001
states
state_id_array0.00110.160610.0011
state_identifier_array0.00230.338720.0012
Override
Cache load0.00170.2425290.0001
Sytem overhead
Fetch class attribute can translate value0.00060.089020.0003
Fetch class attribute name0.00100.146950.0002
XML
Image XML parsing0.00060.084520.0003
class_abstraction
Instantiating content class attribute0.00000.002160.0000
General
dbfile0.00090.1278160.0001
String conversion0.00000.001540.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs