Forums / Install & configuration / Multiple sites and siteaccesses, one installation.

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/

eZ debug

Timing: Jan 18 2025 04:16:31
Script start
Timing: Jan 18 2025 04:16:31
Module start 'content'
Timing: Jan 18 2025 04:16:32
Module end 'content'
Timing: Jan 18 2025 04:16:32
Script end

Main resources:

Total runtime0.7321 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.0781180.8047
Module start 'content' 0.00610.5966 769.8828556.6328
Module end 'content' 0.60280.1293 1,326.5156336.7188
Script end 0.7321  1,663.2344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.5450210.0002
Check MTime0.00150.2012210.0001
Mysql Total
Database connection0.00110.155710.0011
Mysqli_queries0.662790.51411970.0034
Looping result0.00180.25131950.0000
Template Total0.706796.520.3534
Template load0.00210.287920.0011
Template processing0.704696.241720.3523
Template load and register function0.00020.023810.0002
states
state_id_array0.00100.134710.0010
state_identifier_array0.00080.109120.0004
Override
Cache load0.00180.2434290.0001
Sytem overhead
Fetch class attribute can translate value0.00220.297330.0007
Fetch class attribute name0.00120.162150.0002
XML
Image XML parsing0.00100.134230.0003
class_abstraction
Instantiating content class attribute0.00000.001660.0000
General
dbfile0.00220.3008270.0001
String conversion0.00000.000830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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