This is my first time I am using this module and trying to set it up.

My configuration:
Sites:
sitename.com (default site, default language set to English)
sitename.de (default language set to German)
differentsitename.fr (default language set to French)

Desired behavior:
When visitors use domain sitename.com, should see interface and content in English;
when use sitename.de, should see interface and content in German;
and when use differentsitename.fr, should see interface and content in French.

I am getting desired behavior with domains sitename.com and sitename.de, which behaves as expected and described above.
However, differentsitename.fr gets settings of the default domain sitename.com, so on differentsitename.fr I get interface and content in English, instead of French.

HTTP_HOST request www.differentsitename.fr
Domain match FALSE: Using default domain.
domain_id 1
subdomain www.differentsitename.fr
sitename sitename.com
scheme http
valid 1
weight -1
is_default 1
machine_name sitename_com
path http://sitename.com/
site_grant TRUE

I am having installed it on the testing environment and am pretty sure that DNS settings I have configured correctly. I am probably missing some configuration and would appreciate help setting this up.
DA modules enabled: domain, domain_conf, domain_content, domain_nav

Comments

agentrickard’s picture

Status: Active » Postponed (maintainer needs more info)

Are you using core Locale module for setting the default language?

Do you accidentally have the .fr domain configuration overriding the default language?

Are you using i18n?

sketman’s picture

Thank you for your answer Agentrickard.

My settings of default language at admin/config/regional/language ==> default language set to English
Detection method of languagen at admin/config/regional/language/configure:
- user interface: URL
- content language: interface, then URL

Domains settings:
sitename.com ==> default site, default language English
sitename.de ==> default language German
differentsitename.fr ==> default language French

In main module settings at admin/structure/domain/settings I did not change anything from default settings.

I am using i18n for translating content types, menu links, field properties like description and etc.
For content translation I am using Entity translation, because I need to have only single one node after transalted, not separate nodes for each translation.
On content type settings in multilangual support I have selected "Enabled with field translation"

For testing purposes I created new domain sitename.fr and it worked correctly. Only differentsitename.fr does not work, when domain name is different from the default name.

sketman’s picture

So found where is the problem finally!

It was caused by typoo in domain setting in vhost file of Apache. I had some character at the end of domain name differentsiteneme.fr. The character was not visible, it was tab or something like that, so I did not see it even though I checked this vhost file 10 times.

Now everything works. Thank you Agentrickard for your help and also for this excellent module!

agentrickard’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Great news!