Forums / Setup & design / A singolar need of multiple websites/languages and one eZ installation

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

eZ debug

Timing: Jan 18 2025 02:06:11
Script start
Timing: Jan 18 2025 02:06:11
Module start 'content'
Timing: Jan 18 2025 02:06:12
Module end 'content'
Timing: Jan 18 2025 02:06:12
Script end

Main resources:

Total runtime1.0003 sec
Peak memory usage4,096.0000 KB
Database Queries217

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 588.0781180.8047
Module start 'content' 0.00680.8612 768.8828704.2578
Module end 'content' 0.86810.1321 1,473.1406340.4141
Script end 1.0002  1,813.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.4220210.0002
Check MTime0.00170.1665210.0001
Mysql Total
Database connection0.00120.123510.0012
Mysqli_queries0.906390.60582170.0042
Looping result0.00220.21572150.0000
Template Total0.971897.220.4859
Template load0.00230.234020.0012
Template processing0.969496.918820.4847
Template load and register function0.00020.015610.0002
states
state_id_array0.00100.097110.0010
state_identifier_array0.00150.150120.0008
Override
Cache load0.00210.2119590.0000
Sytem overhead
Fetch class attribute can translate value0.00130.125050.0003
Fetch class attribute name0.00120.1198120.0001
XML
Image XML parsing0.00220.222850.0004
class_abstraction
Instantiating content class attribute0.00000.0023140.0000
General
dbfile0.00370.3719420.0001
String conversion0.00000.000430.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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