A singolar need of multiple websites/languages and one eZ installation

Author Message

Mauro Innocenti

Wednesday 20 October 2010 12:03:55 am

I've read carefully the eZ documentation, some tutorials and many forum threads on the subject "multiple websites with one eZ installation", but none has given me a perfect solution for my needs:

I need two (or more) websites with different hostnames and multiple languages, eg.:

- website1_hostname/en
- website1_hostname/it

- website2_hostname/en
- website2_hostname/fr

And I want only one hostname for administrating all my websites, eg.:

- admin_hostname/website1
- admin_hostname/website2

There's a (clean) solution using a single eZ installation?

I'm using eZ 4.4.0 on a LAMP server.

Thanks for any answer that help in some way.

Quoc Huy Nguyen Dinh

Wednesday 20 October 2010 3:06:22 am

Have you read that one?

http://share.ez.no/learn/ez-publish/lots-of-websites-one-ez-publish-installation-adding-siteaccesses-in-ez-publish

Mauro Innocenti

Thursday 21 October 2010 3:12:47 am

Yes, I've read it. But this article don't resolve completely my needs.

It seem's that the site.ini settings available for mapping hostname/URI with siteaccesses aren't enough.

Quoc Huy Nguyen Dinh

Friday 22 October 2010 3:45:49 am

Instead of using URI for language can't you use subdomain instead?

www.website1.com => goes to default language, siteaccess website1_en

fr.website1.com => french website 1, website1_fr

it.website2.com => italien website 2, website2_it

en.website2.com => english website 2, website2_en

Mauro Innocenti

Friday 22 October 2010 5:50:57 am

I don't, sorry.

I want to host a lot of websites and I'm limited to only one hostname per website.

Steven E. Bailey

Friday 22 October 2010 7:00:50 am

I think what you want is the MatchOrder=host_uri which was added to 4.4 so it's not really well-documented yet.

You can use something like this:

MatchOrder=host_uri

HostUriMatchMapItems[]

HostUriMatchMapItems[]=website1.tld;en;website1_en

HostUriMatchMapItems[]=website1.tld;fr;website1_fr

HostUriMatchMapItems[]=website1.tld;it;website1_it

HostUriMatchMapItems[]=website2.tld;en;website2_en

HostUriMatchMapItems[]=website2.tld;fr;website2_fr

HostUriMatchMapItems[]=website2.tld;it;website2_it

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

Mauro Innocenti

Monday 25 October 2010 1:06:45 am

Yes! That's exactly what I needed!

Thank You!

Quoc Huy Nguyen Dinh

Monday 25 October 2010 7:33:21 am

Excellent!

Nicolas Pastorino

Monday 25 October 2010 10:15:07 am

"

Yes! That's exactly what I needed!

Thank You!

"

Hi Mauro,

Nice to see you got the relevant answer. Thanks to all guys. You may now want to mark the topic as solved (click the small ticker, right next to the topic's title).

Cheers all !

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

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 05:13:18
Script start
Timing: Jan 18 2025 05:13:18
Module start 'layout'
Timing: Jan 18 2025 05:13:18
Module start 'content'
Timing: Jan 18 2025 05:13:19
Module end 'content'
Timing: Jan 18 2025 05:13:19
Script end

Main resources:

Total runtime0.8671 sec
Peak memory usage4,096.0000 KB
Database Queries80

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 588.3906152.6875
Module start 'layout' 0.00450.0031 741.078139.5313
Module start 'content' 0.00760.8580 780.6094699.1328
Module end 'content' 0.86550.0015 1,479.742220.0781
Script end 0.8671  1,499.8203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3793160.0002
Check MTime0.00130.1539160.0001
Mysql Total
Database connection0.00070.075110.0007
Mysqli_queries0.789991.0928800.0099
Looping result0.00080.0878780.0000
Template Total0.838296.720.4191
Template load0.00190.217520.0009
Template processing0.836396.437320.4181
Template load and register function0.00020.018110.0002
states
state_id_array0.00080.097910.0008
state_identifier_array0.00160.188020.0008
Override
Cache load0.00170.1928590.0000
Sytem overhead
Fetch class attribute can translate value0.00070.078640.0002
Fetch class attribute name0.00130.1528120.0001
XML
Image XML parsing0.00200.229540.0005
class_abstraction
Instantiating content class attribute0.00000.0032140.0000
General
dbfile0.00130.1510310.0000
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
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 35
 Number of unique templates used: 8

Time used to render debug report: 0.0002 secs