Closed (fixed)
Project:
Provision
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Oct 2010 at 19:21 UTC
Updated:
12 Jun 2014 at 08:41 UTC
Jump to comment: Most recent
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
Comment #1
eft commentedchanged title to add *do not*
Comment #2
timwoodsub
Comment #3
Anonymous (not verified) commentedYep. Fixed in git