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