This is in alpha14. In $HOME/.drush/provision/http/apache/qvhost.tpl.php
...
<?php
if (sizeof($this->aliases)) {
print "\n ServerAlias " . implode("\n ServerAlias ", $this->aliases) . "\n";
if ($this->redirection || $ssl_redirection) {
print " RewriteEngine on\n";
if ($ssl_redirection && !$this->redirection) {
// redirect aliases in non-ssl to the same alias on ssl.
print " RewriteRule ^/*(.*)$ https://%{HTTP_HOST}/1ドル [L,R=301]\n";
}
elseif ($ssl_redirection && $this->redirection) {
// redirect all aliases + main uri to the main https uri.
print " RewriteRule ^/*(.*)$ https://{$this->uri}/1ドル [L,R=301]\n";
}
elseif (!$ssl_redirection && $this->redirection) {
// Redirect all aliases to the main http url.
print " RewriteCond %{HTTP_HOST} !^{$this->uri}$ [NC]\n";
print " RewriteRule ^/*(.*)$ http://{$this->uri}/1ドル [L,R=301]\n";
}
}
}
?>
...
The absence of site aliases should not prevent the rewrite rule for http->https.
Comments
Anonymous’s picture
Comment #3
Anonymous (not verified) commented Status: Active » Fixed
Yep. Fixed in git
Status: Fixed » Closed (fixed)
Automatically closed -- issue fixed for 2 weeks with no activity.
- Commit 72f09e4 on debian, dev-koumbit, dev-log_directory, dev-migrate_aliases, dev-multiserver-install, dev-simplerinstaller, prod-koumbit, dev-ssl-ip-allocation-refactor, dev-1205458-move_sites_out_of_platforms, 7.x-3.x, dev-subdir-multiserver, 6.x-2.x-backports, dev-helmo-3.x by mig5:
#940816 - we don't need to depend on Aliases for SSL redirection....
Comment #1
eft commentedchanged title to add *do not*