Hello,
Is there a way to use subfolders as subdomains with DA(with same DA behavior - user and content separation)? I mean sub sites with these addresses, for example:
http://www.example.com/site_name1
http://www.example.com/site_name2
http://www.example.com/site_name3
.
.
Thanks a lot.
Comments
Comment #1
agentrickardNo. Not unless your server is set up to register HTTP_HOST differently for each folder.
There might be a sneaky way to do it, potentially. In each folder, drop an identical copy of settings.php (same $db_url and so on).
Not recommended, but it might work, put this in settings.php _before_ the DA include line for each folder:
This is probably a very bad idea, as messing with the $_SERVER var like this can have unpredictable results.
Comment #2
Ehud commentedOK. Thanks for your reply!
Comment #3
Ehud commentedSorry for closing too early..
I just don't know these issues...
Do you see any problem in registering HTTP_HOST differently for each folder?
And if not, can you give some tip on how do I do it?
Thanks again!
Comment #4
Mo commentedI'm interested in such functionality too.. If with DA, or any other module. I basically want multiple sites with same configuration, different content, and different users. Any ideas??
Comment #5
agentrickardNormal table prefixing could do that for you. You only need DA if you want to share content among sites.
Comment #6
Mo commentedI thought of using table prefixing initially with Drupal multi-site feature, but then I thought it will be much easier for maintenance in future if I just use DA. As at the end the number of sites will go to 200+.
This is how I'm testing on my test setup.
Tested:
I'm using DA 7.x.
Not sharing content across sub-domains.
Discovered that each domain has unique books. That is what I want.
Added some test users to the main site.
Assigned them to domains under "Assigned Domains"
Theory:
When users edit content, I will use boost or some other file caching module and create static pages.
We have a static web server, to which these static files will be copied by a script. During this time, I will rename the cache folder of a domain to be a subfolder.
Do you see any issues with this setup?