zhangtaihao / hosting_subsite Goto Github PK
View Code? Open in Web Editor NEWHostmaster-managed Drupal sites hosted under subfolders.
License: GNU General Public License v2.0
Hostmaster-managed Drupal sites hosted under subfolders.
License: GNU General Public License v2.0
================================================== = Aegir hosted subsite ================================================== This module plugs into the hosting module under hostmaster install profile for the Drupal provisioning system Aegir. The module aims to address issues raised in <http://groups.drupal.org/node/19006>. The mechanisms in this module are relatively naive. The module takes advantage of the existing Aegir architecture and does not alter the basic behaviour of the Site feature (nor can it). Instead, it does three things: - Adds subsite management to the site edit form. - Hook onto provision_apache_vhost_config to add an Apache alias and database connection parameters to the parent vhost for the subsite. - Fire hosting tasks when subsite relationship changes occur. There is a separate module to deploy with Provision, called provision_subsite. Use this module in conjunction with it. LIMITATIONS -------------------------------------------------- The subsite management mentioned above is merely a means for pairing sites with paths. As far as the module is concerned, it does not realise the pattern of the subsite's domain name other than assume that the user has named the site in such a way that Drupal loads the settings.php of that site correctly. An example situation demonstrate a potential limit to this mechanism is www.example.com/au being the same as www.example.com.au due to the way Drupal searches the sites folder for settings. As Aegir prevents the creation of two sites with identical domain names, it is impossible to even host the two variants on separate platforms. INSTALLATION -------------------------------------------------- Extract hosting_subsite into sites/all/modules under the Hostmaster directory. Extract provision_subsite into ~/.drush under the Aegir home directory. LICENSE -------------------------------------------------- This module is released under GPLv2. For the full license, see included file LICENSE in the directory.
Hi there,
Your README mentions the backend component 'provision_subsite', however I can't find this on Github or anywhere else. Are you able to share it? I'm particularly interested in how you handle Apache config so that two sites can exist as 'subfolders' on the one codebase - without requiring RewriteBase, which can't be set multiple times in the top-level of the Drupal codebase.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.