Commit 13b761e3 authored by anarcat's avatar anarcat Committed by anarcat

create configuration files named after url_port instead of just url

the rationale here is that we can have different sites on different
ports that will be generated at different times, so we will not be
able to generate a full config file for all ports in one pass
parent 6d9d9139
......@@ -106,7 +106,19 @@ function _provision_apache_create_vhost_config($url, $template = NULL) {
$options['extra_config'] = "# Extra configuration from modules:\n";
$options['extra_config'] .= join("\n", drush_command_invoke_all('provision_apache_vhost_config', $url, $options));
return _provision_apache_create_config($url, $options, $template);
/* one file per virtualhost name/port combination
*
* the rationale here is that we can have different sites on
* different ports that will be generated at different times, so we
* will not be able to generate a full config file for all ports in
* one pass
*/
$file = $url . '_' . $options['site_port'];
// backward compatibility with 0.3
if (provision_path_exists(drush_get_option('vhost_path') .'/'. $url)) {
rename(drush_get_option('vhost_path') .'/'. $url, drush_get_option('vhost_path') .'/'. $file);
}
return _provision_apache_create_config($file, $options, $template);
}
function _provision_apache_create_server_config($url) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment