Closed (fixed)
Project:
Domain
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Oct 2007 at 03:48 UTC
Updated:
4 Oct 2007 at 02:33 UTC
The default domain is set to 'www' but this causes errors when testing on a local machine when all you have is a machine name, e.g. 'localhost'. Making the default just an empty string would fix this since most sites alias www.example.com to example.com anyway.
What do you think?
Comments
Comment #1
agentrickardRight. This is hard coded at the moment and I haven't fixed it.
It only causes a problem for the Domain Swtiching block routine and at admin/build/domain.
The fix is to comment out line 28 of domain_admin.inc:
This is one of the reasons I haven't rolled a release yet.
Comment #2
agentrickardOf course, the module won't really work on 'localhost' anyway. To really test it, you need to set up widlcard DNS or at leat VirtualHosts.
On my test machine, I have the following VirtualHosts pointing at 127.0.0.1
- ken.test
- www.ken.test
- one.ken.test
- two.ken.test
- three.ken.test
Comment #3
agentrickardMaking this change may fix the problem.
Comment #4
agentrickardThis has been fixed by changing the domain registration a fully-qualified domain string.