inviqa/chef-magento — pull request #1 by rgpjones (2012-08-16 09:36:26+00:00)
Title: Develop

Added multisite support for Magento, allowing the same document root to be used for multiple stores.

This depends upon setting the MAGE_RUN_CODE in the Apache configuration.

Magento sites can be configured by adding to the 'magento' data:

:sites => [
{
"run_code" => 'mysite',
"servername" => 'mysite.example.com',
"server_alias" => [
"mysite.css.example.com",
"mysite.imgs.example.com",
"mysite.js.example.com"
]
}
]

This depends upon having the websites and stores correctly set-up in Magento, probably via an install script that will get executed as part of the initial Magento installation.