Commit 5b043ff6 authored by anarcat's avatar anarcat Committed by anarcat
Browse files

try to fix SSL for non-redirection cases

basically, we're ignoring the site_port setting from now on: we just create a new vhost file from scratch on port 443, which drops support for ssl on ports other than 443
parent 8ca1d037
......@@ -31,10 +31,12 @@ function provision_ssl_provision_apache_vhost_config($url, $options) {
$newoptions['site_port'] = 80;
provision_write_config(drush_get_option('vhost_path') . '/' . $url . '_80', _provision_apache_redirect_template(), $newoptions);
}
return array("php_value session.cookie_secure 1", "SSLEngine On");
} else {
return NULL;
$newoptions = $options;
$newoptions['site_port'] = 443;
$newoptions['extra_config'] = "php_value session.cookie_secure 1\nSSLEngine On\n";
provision_write_config(drush_get_option('vhost_path') . '/' . $url . '_443', _provision_apache_default_template(), $newoptions);
}
return NULL;
}
/**
......
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