Closed (fixed)
Project:
Domain
Version:
5.x-1.0beta4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Oct 2007 at 13:09 UTC
Updated:
13 Nov 2007 at 01:32 UTC
I have configured 3 different front pages for:
- mydomain.net (main domain)
- alfa.mydomain.net
- beta.mydomain.net
DNS returns same IP for mydomain.net and *.mydomain.net
httpd.conf defines virtual hosts alfa and beta
alfa.mydomain.net, beta.mydomain.net and mydomain.net
all point to the same front page (the main domain front page)
Comments
Comment #1
agentrickardThis is likely a bug, as this featue has not been heavily tested.
Let me be clear. You have these domains, plus the Domain Conf module turned on, with homepages set as:
- mydomain.net (main domain) == node (default)
- alfa.mydomain.net == example/path
- beta.mydomain.net == example/path/two
And all three home pages go to mydomain.net/?q=node.
Right?
Comment #2
skizzo commentedyes, namely (with pathauto):
alfa_page published-to domain alfa only
beta_page published-to domain beta only
- mydomain.net (main domain) == node
- alfa.mydomain.net == content/alfa_page
- beta.mydomain.net == content/beta_page
I saw the problem also without pathauto
Comment #3
agentrickardConfirmed. This is not a pathauto problem. It seems that the $conf rewrite doesn't occur before the page determination is made.
Must investigate or remove this from the settings options.
Comment #4
agentrickardYes. The page assignment happens during Drupal bootstrap inside drupal_init_path().
So we won't be able to load these settings during hook_init() -- that's just too late in the process. We'll have to try loading them in the settings.php file.
This change to domain_conf_init() will pop the user to the correct page, but not the 'proper' home page.
Comment #5
agentrickardTypo in last entry. Still, I don't think this is the 'right' solution.
Comment #6
agentrickardLikely we'll need to do this inside settings.php. See variable_init().
I had hoped to avoid this, but might need to bring back this file in some form.
Comment #7
agentrickardSee also conf_init()
Comment #8
agentrickardWe can likely do this in settings.php without the raw PHP/SQL code, by replicating this bootstrap phase:
Comment #9
agentrickardActually, the first solution may work, since it may be that only the frontpage is an issue here. If we use drupal_goto() as shown and reset the homepage var, the Home breadcrumb trail does not appear, which seems acceptable.
Comment #10
agentrickardThe first solution does NOT work. We'll have to load this in settings.php.
Comment #11
agentrickardFixed and committed to HEAD.
Note the new INSTALL.txt file in the domain_conf directory. These instructions must be followed for settigns overrides to work.
Comment #12
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.