Forums / Install & configuration / one installation, one domain, multiple sites and language.

one installation, one domain, multiple sites and language.

Author Message

Nur Bay

Thursday 08 May 2008 6:04:41 am

Dear Sirs,

If it is possible to configure site access as follows:

aaa.domain.com - aaa
aaa.domain.com/eng - aaa_eng
aaa.domain.com/admin - admin_aaa

bbb.domain.com - bbb
bbb.domain.com/eng - bbb_eng
bbb.domain.com/admin - admin_bbb

ccc.domain.com - ccc
ccc.domain.com/eng - ccc_eng
ccc.domain.com/admin - admin_ccc

(ez.publish 3.9)

Thank you in advance.

Maxime Thomas

Friday 09 May 2008 2:03:48 am

Hi, check there the Step 8 :
http://ez.no/doc/ez_publish/technical_manual/4_0/installation/the_setup_wizard
http://ez.no/doc/ez_publish/technical_manual/4_0/concepts_and_basics/configuration/access_methods

Hope it helps.

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Nur Bay

Friday 09 May 2008 7:02:12 am

I've read those links many times. It seems to me that it is impossible to extract the answer for my question from the links provided. So I dare to ask the community. Please help.

Maxime Thomas

Monday 12 May 2008 10:16:43 am

If you want to use domain names as siteaccesses, you must set up yor eZ Publish in Host Mode. You can do it during the installation, Step 8, or modify it in the override.ini.append.php located in the settings/override directory.

Is it clearer ?

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

nur b

Tuesday 13 May 2008 3:42:03 am

Thankyou for trying to help. Your efforts are very appreciated.
By the way, please take into account that i need those /en /fr selections.

As far as i understood, "host" option only deals with url part -"www.sss.com" and one can't use subdirectories like "www.sss.com/ENG".

I wonder is it correct to write
HostMatchMapItems[]=www.sss.com/ENG; sss_eng;
HostMatchMapItems[]=www.sss.com/KAZ; sss_kaz;
HostMatchMapItems[]=aaa.sss.com/ENG; aaa_eng;
HostMatchMapItems[]=aaa.sss.com/KAZ; aaa_kaz;

i've found similar topic http://ez.no/developer/forum/install_configuration/more_than_one_multilingual_site_on_one_ezpublish_instance/re_more_than_one_multilingual_site_on_one_ezpu__4

the issue is old and shows no signs of solution. pity.

Maxime Thomas

Wednesday 14 May 2008 12:12:27 am

Actually, it is a matter of fact :
- for each entry point in your website, you have to declare a siteaccesses
- for each each languages, you also have to declare siteaccesses
So, for a multi website / multilanguage website, you must combine all this elements and have siteaccesses as :

site1_lang1
site1_lang2
site1_lang3
site2_lang1
site2_lang3
site3_lang1
site3_lang2
...

But maybe you can combine host and URL settings for more flexibility. You can also look Apache config for alias redirection and eZ Config for prefix settings. It means that your Apache will redirect from en.mysite.com to www.mysite.com/en_mysite and than eZ will process the URL to only show www.mysite.com/mysite. I think it can work.

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

eZ debug

Timing: Jan 19 2025 04:54:15
Script start
Timing: Jan 19 2025 04:54:15
Module start 'content'
Timing: Jan 19 2025 04:54:16
Module end 'content'
Timing: Jan 19 2025 04:54:16
Script end

Main resources:

Total runtime1.0277 sec
Peak memory usage4,096.0000 KB
Database Queries205

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 589.2188180.8047
Module start 'content' 0.00720.8682 770.0234620.5078
Module end 'content' 0.87530.1523 1,390.5313341.0469
Script end 1.0276  1,731.5781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.3818210.0002
Check MTime0.00140.1385210.0001
Mysql Total
Database connection0.00090.086210.0009
Mysqli_queries0.934490.92082050.0046
Looping result0.00200.19212030.0000
Template Total0.989496.320.4947
Template load0.00210.206320.0011
Template processing0.987296.066220.4936
Template load and register function0.00020.020010.0002
states
state_id_array0.00170.167010.0017
state_identifier_array0.00240.232220.0012
Override
Cache load0.00180.1748470.0000
Sytem overhead
Fetch class attribute can translate value0.00160.152140.0004
Fetch class attribute name0.00130.125670.0002
XML
Image XML parsing0.00350.338040.0009
class_abstraction
Instantiating content class attribute0.00000.002190.0000
General
dbfile0.01461.4210270.0005
String conversion0.00000.000630.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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: 30
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs