Closed (fixed)
Project:
Domain
Version:
6.x-2.x-dev
Component:
Miscellaneous
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
10 Aug 2009 at 06:12 UTC
Updated:
17 Sep 2024 at 22:44 UTC
Jump to comment: Most recent
Comments
Comment #1
agentrickardWe use Domain Alias. Register the development server, and alias the real boxes. We also do a lot of shared work via SVN, which involves everyone having their own code checkout in the pattern:
PROJECT.USERNAME.HOST
So we alias PROJECT.*.HOST to the registered domain(s). However, this can cause an issue where links from PROJECT.ME.HOST are sent to the wrong domain. So I have the following custom code.
This goes at the bottom of settings.php, before we load Domain Access:
Then this code goes in a custom module:
You can leave this code in place when you go live.
When the project goes live, we switch out the production domains into an alias. You could also set up separate tables in the db if you like. Something like this:
Then you would need a {staging_domain} and {staging_domain_alias} table, created through SQL admin. You can also set up prefixing per user, which we had to do for D5, since there is no Domain Alias.
Comment #2
jmather commentedThanks, very interesting technique. Does that mean you have multiple developers working off of a development machine or off of the aliased live machine which you then go live with using another alias?
I suppose I was hoping to get some info on using some kind of module like http://drupal.org/project/securesite to lockout spiders and unwanted visitors, perhaps this technique solves this problem as well.
The secure site module might work with DA, but I haven't tried...
Thx.
Comment #3
agentrickardOh, well, you can set all your domains (except primary) to 'inactive' and then only admins can access them.
Otherwise, I would register an IP (not a DNS) as the domain, and then secure the IP.
And, yes, we have multiple developers on a shared server. One database with infinite SVN sources.
Comment #4
agentrickardComment #5
jmather commentedOne quick question on this, you said that when a domain is 'inactive' then only admins can access them. I disabled one of my (non-primary) domains and then logged in as admin and was not able to view the inactive domain, most likely because it is not a subdomain and I don't have the shared sign-on module running, would the shared sign-on module allow this?
Comment #6
jmather commentedComment #7
jmather commentedI tested my above scenario with the shared sign on module, I got the shared sign on to work, but when logging in as admin to the master domain with the other domain inactive I could not browse to the inactive domain. Not sure why that is the case but I'm looking in the shared sign-on module to see, if anyone has any hints....
Thanks.
Comment #8
agentrickardNothing to do with Shared Sign-On. Its based on the 'administer domains' permission.
Comment #9
agentrickardComment #10
agentrickardNeeds to be added to online docs.
Comment #11
croryx commentedI added an edited version of your response in #1 to http://drupal.org/node/1096988.
Comment #12
agentrickardNice. I think it's a bit confusing and might need its own page. I made some edits.
Comment #13
dqdSounds like fixed.
Apart from that: I'll close this issue due to inactivity for 13 years and even if I would move it to the next nearest core version which is 7, there is upcoming EOL of Drupal 7 in January 2025. While the project's version for Drupal 7 will surely keep providing support for security issues and website breaking bug fixes for Drupal 7, we should try to minimize the open issues for Drupal 7 in the queue as much as possible. A big thanks around for the report and all the efforts in here. Feel free to re-open if you can provide a fix or found an additional related problem which increases the issue priority.