Skip to content
Permalink
Browse files

Detect redirection breaking SAN in Apache and Nginx

  • Loading branch information...
omega8cc committed May 19, 2016
1 parent 424df6c commit 3ea24cc101ad155bd345a1c1e6a55b3223e1dc8f
Showing with 9 additions and 1 deletion.
  1. +9 −1 drush/provision_hosting_le.drush.inc
@@ -114,7 +114,15 @@ function drush_provision_hosting_le_post_provision_verify() {
if (provision_file()->exists($site_vhost)->status()) {
$grep_output = '';
$redirect_result = '';
exec("/bin/grep \"alias redirection virtual host\" " . $site_vhost, $grep_output);
$http_service_type = d('@server_master')->http_service_type;
if ($http_service_type == 'nginx_ssl') {
exec("/bin/grep \"alias redirection virtual host\" " . $site_vhost, $grep_output);
}
elseif ($http_service_type == 'apache_ssl') {
exec("/bin/grep \"Redirect all aliases\" " . $site_vhost, $grep_output);
}
$redirect_result = implode(' ', $grep_output);
drush_log('[provision_hosting_le] Redirect check result for ' . $sitename . ' : ' . $redirect_result);

0 comments on commit 3ea24cc

Please sign in to comment.
You can’t perform that action at this time.