Closed (fixed)
Project:
Domain
Version:
5.x-1.0rc1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Dec 2007 at 22:19 UTC
Updated:
2 Nov 2013 at 17:50 UTC
Jump to comment: Most recent
Comments
Comment #1
agentrickardThis likely has nothing to do with the values in the {domain} table.
Domain zero (0) is not stored in the database. It is derived from the variable settings on the main Domain settings page.
Domain 0 takes the variables of the main site straight from the variables table and the $conf array.
I do not know why this would occur, but your default site is set to offline mode. To fix this with PHPMyAdmin, go to the {variables} table, and set 'site_offline' to 0 (zero). Then delete the variables row from the {cache} table.
For reference, the default domain is created by this function.
Comment #2
skizzo@drupal.org commentedComment #3
skizzo@drupal.org commentedThanks. Fixing the variable did it. Still I have a problem with single session across all (localhost) domains. I have set $cookie_domain='localhost' in settings.php. Is that enough? When I switch from localhost to dom1.localhost to dom2.localhost it keeps prompting for user authentication.
Comment #4
agentrickardThat's a local Apache issue. I run tests on OS X (Apache 1.3). You have to configure named VirtualHosts in httpd.conf. I do not believe that you can add a third-level domain to 'localhost'.
Comment #5
agentrickardComment #6
najibx commentedThis is off topic isn't it? I was advised to put in a new issue for different topic.
Anyhow, i had a similar problem earlier when i name my local server
$cookie_domain="najibx-my";
Similarly, I guest this not a domain name the cookies is expecting. I then change to localhost to "najibx.my" and cookie :
$cookie_domain=".najibx.my";
it works. I guess you need something xx.xxx rather than just localhost or najibx-my
hope that help you.
Comment #7
agentrickardIt does help and it is on topic.
This is both an Apache configuration issue and part of the cookie standard. I was trying to configure a new testing server last night, and the NameServer must be in the format xx.xxx. For Domain Access to work, you must also be able to run different NameServers.
In testing, I edit my 'hosts' file and 'httpd.conf' to accept a dummy domain name. So, for example:
Then I set Drupal's $cookie_domain to '.ken.test'
However, I am not an Apache expert and there are probably better ways to do this.
Comment #8
skizzo commentedI ended up with a similar setup for local testing on Fedora:
$cookie_domain = 'localhost';
/etc/hosts:
::1 localhost
::1 one.localhost two.localhost three.localhost
httpd.conf:
configured 3 virtual servers
one.localhost two.localhost three.localhost
Comment #9
silverwing commented