Commit 21e945ab authored by omega8cc's avatar omega8cc

Issue #2020089 by ergonlogic - Allow example.com and example.com/foo domains (partial commit)

parent 296c9611
......@@ -34,11 +34,18 @@ class Provision_Config_Apache_SubdirVhost extends Provision_Config_Http {
foreach (d()->aliases as $alias) {
if (strpos($alias, '/')) {
$this->current_alias = $alias;
if (d($this->uri())) {
drush_log(dt('virtual host %vhost already exist for alias %alias, skipping', array('%vhost' => $this->uri(), '%alias' => $alias)), 'warning');
// XXX: we need to verify that vhost here, or at least
// generate its configuration file.
}
else {
drush_log("Subdirectory alias `$alias` found. Creating vhost configuration file.", 'notice');
parent::write();
}
}
}
}
function process() {
parent::process();
......
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