I have two sites on same server.
Like
one is /var/www/site1
and
other /var/www/site2
So site1 and site2 both has domain access module .
site 1 has multiple domain records
for e.g.
t1.abc.com
t2.abc.com
t3.abc.com
the base url is set to t1.abc.com
and site 2 has domain module but no domains
i.e. site 2
has only a default domain record id 0 : t4.abc.com
Here the base url is set to be t4.abc.com
The issue which arises is i can see the site1's menus on site2 .
Also blocks on site 1 are visible on site 2
To reproduce the same error,
you can try adding two sites site1 and site2 having domain access module
How can I fix the above issue ?
Comments
Comment #1
hash6 CreditAttribution: hash6 commentedComment #2
hash6 CreditAttribution: hash6 commentedComment #3
jweirather CreditAttribution: jweirather commentedMy first guess is that this may be an issue with DNS or the Webserver's domain settings. Properly configured, the two sites should be running as independent applications, agnostic of each other.
Can you confirm that the two sites have different: DNS settings (not wildcard), webservers are configured to only serve content for the assigned domains, and that the SQL databases are running independent of each other, and with unique credentials?
Also, try testing with differing themes on the two domains, just to prove that different pages are actually coming from the sites that they should be. In other words:
site1 - theme1
site2 - theme2
If you go to site2, but see site1 theme, then site1 is likely hijacking all traffic, and serving content from its default domain.
Comment #4
agentrickard