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.