Forums / Install & configuration / mixing host and uri

mixing host and uri

Author Message

SEBBANE Alexandre

Saturday 25 July 2009 3:20:52 pm

hello,
Can we do this :
2 websites / 7 siteaccess

www.aa.com/fr which is the french version of the aa site with rootnode=300
www.aa.com/en which is the english version of the aa site with rootnode=300
www.bb.com/fr which is the french version of the bb site with rootnode=301
www.bb.com/en which is the english version of the bb site with rootnode=301
www.admin.aa.com/ which is the admin with rootnode=300
www.admin.bb.com/ which the admin with rootnode=301
www.admin.cc.com/ which the admin global rootnode=2

where the node 2 is parent of 300 and 301

i know how to do configuration with the root node but i didnot manage to do
with the directive :

MatchOrder
HostMatchMapItems[]
URIMatchMapItems[]

thanks for your help

Paris, France

André R.

Sunday 26 July 2009 5:56:53 am

It's not possible to have several siteaceeses with same name in uri, so one of them need to have a siteprefix, like bb.com/bb_en or something.

Theoretically it should be possible to work around that by having separate installations for the different domains that share db and var folder. Or maybe even do some magic in config.php.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

SEBBANE Alexandre

Sunday 26 July 2009 10:58:51 am

ok i understand

if the siteaccess are not the same :

could you help me with the configuration if the directive host and uri ....

how did i do to make siteacces1 and siteaccess2 on different hostname ....

Paris, France

André R.

Sunday 26 July 2009 12:31:51 pm

Example where just domain gives you french site, and to get english site you add aa_eng or bb_eng to the url.

AvailableSiteAccessList[]=aa_fre
AvailableSiteAccessList[]=aa_eng
AvailableSiteAccessList[]=bb_fre
AvailableSiteAccessList[]=bb_eng
#The following setting needs 4.0.3 or higher to be able to work like this!
MatchOrder=uri;host

HostMatchMapItems[]=aa.com;aa_fre
HostMatchMapItems[]=www.aa.com;aa_fre

HostMatchMapItems[]=bb.com;bb_fre
HostMatchMapItems[]=www.bb.com;bb_fre

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

eZ debug

Timing: Jan 18 2025 18:29:40
Script start
Timing: Jan 18 2025 18:29:40
Module start 'content'
Timing: Jan 18 2025 18:29:41
Module end 'content'
Timing: Jan 18 2025 18:29:41
Script end

Main resources:

Total runtime1.2524 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.0083 588.8438180.8359
Module start 'content' 0.00831.1129 769.6797568.4922
Module end 'content' 1.12120.1312 1,338.1719336.7500
Script end 1.2523  1,674.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.3328210.0002
Check MTime0.00150.1189210.0001
Mysql Total
Database connection0.00090.074110.0009
Mysqli_queries1.170893.48211970.0059
Looping result0.00210.16981950.0000
Template Total1.215797.120.6079
Template load0.00220.178120.0011
Template processing1.213596.892220.6067
Template load and register function0.00010.008010.0001
states
state_id_array0.00160.125210.0016
state_identifier_array0.00130.100420.0006
Override
Cache load0.00190.1516350.0001
Sytem overhead
Fetch class attribute can translate value0.00090.073130.0003
Fetch class attribute name0.00130.107260.0002
XML
Image XML parsing0.00130.107630.0004
class_abstraction
Instantiating content class attribute0.00000.002580.0000
General
dbfile0.00370.2915340.0001
String conversion0.00000.000530.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs