Coder Social home page Coder Social logo

hosting_subsite's Introduction

==================================================
=  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.

hosting_subsite's People

Contributors

zhangtaihao avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar

hosting_subsite's Issues

provision_subsite component missing?

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.