Index: web_server/provision_apache.drush.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/provision/web_server/provision_apache.drush.inc,v retrieving revision 1.7 diff -u -u -r1.7 provision_apache.drush.inc --- web_server/provision_apache.drush.inc 24 Mar 2009 16:52:35 -0000 1.7 +++ web_server/provision_apache.drush.inc 26 Mar 2009 01:36:06 -0000 @@ -62,6 +62,13 @@ } /** + * The template for platform configuration settings + */ +function _provision_apache_platform_template() { + return file_get_contents(dirname(__FILE__) ."/provision_apache_platform.tpl.php"); +} + +/** * Delete virtual host file */ function _provision_apache_delete_vhost_config($url) { Index: web_server/verify.provision.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/provision/web_server/verify.provision.inc,v retrieving revision 1.5 diff -u -u -r1.5 verify.provision.inc --- web_server/verify.provision.inc 24 Mar 2009 16:52:35 -0000 1.5 +++ web_server/verify.provision.inc 26 Mar 2009 01:36:06 -0000 @@ -3,6 +3,18 @@ function provision_apache_provision_verify($url) { if (PROVISION_CONTEXT_PLATFORM) { _provision_create_dir(drush_get_option('vhost_path'), dt("Virtual host configuration"), 0700); + $data = drush_get_merged_options(); + drush_log(dt("Generating platform apache configuration file")); + $writable = provision_path("writable", drush_get_option('vhost_path'), TRUE , NULL, + dt("Virtual host configuration path @path is not writable."), + 'PROVISION_VHOST_PATH_NOT_WRITABLE'); + $options = drush_get_context('options'); + if ($writable) { + $file = fopen(drush_get_option('vhost_path') .'/_platform_' . $options['platform'] . '.conf', "w"); + $text = provision_render_config(_provision_apache_platform_template(), $data); + fwrite($file, $text); + fclose($file); + } } else { _provision_apache_create_vhost_config($url); --- /dev/null 2009-03-23 21:07:08.553263372 -0400 +++ web_server/provision_apache_platform.tpl.php 2009-03-25 21:29:19.000000000 -0400 @@ -0,0 +1,6 @@ +> + Options Indexes FollowSymLinks MultiViews + AllowOverride All + Order allow,deny + Allow from all +