summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorac2017-12-21 13:34:19 +0100
committerHerman van Rink2017-12-21 13:34:19 +0100
commit0c3b924012d909c5962213f1947ac2b19d460eed (patch)
treef22bda59e60c51baa0c691c1da016cbf5e92b811
parent1852e6f2c286f161d8e2f61eca7602199d00f17c (diff)
Issue #2888283 by ac: Not updating ownership of private/configHEAD7.x-3.x
-rw-r--r--http/Provision/Config/Apache/server.tpl.php6
-rw-r--r--platform/deploy.provision.inc3
2 files changed, 8 insertions, 1 deletions
diff --git a/http/Provision/Config/Apache/server.tpl.php b/http/Provision/Config/Apache/server.tpl.php
index 5efa19d..e6ea28a 100644
--- a/http/Provision/Config/Apache/server.tpl.php
+++ b/http/Provision/Config/Apache/server.tpl.php
@@ -5,7 +5,11 @@ NameVirtualHost *:<?php print $http_port; ?>
<VirtualHost *:<?php print $http_port; ?>>
ServerName default
- Redirect 404 /
+
+ <IfModule mod_rewrite.c>
+ RewriteEngine on
+ RewriteRule ^(?!(/\.well-known/acme-challenge/.+)) - [R=404,L,NC]
+ </IfModule>
</VirtualHost>
diff --git a/platform/deploy.provision.inc b/platform/deploy.provision.inc
index f77fa39..86f056b 100644
--- a/platform/deploy.provision.inc
+++ b/platform/deploy.provision.inc
@@ -67,6 +67,9 @@ function drush_provision_drupal_pre_provision_deploy($backup_file) {
provision_file()->chgrp(drush_get_option('extract_path') . '/private/temp', d('@server_master')->web_group, TRUE)
->succeed('Changed group ownership of temp files in <code>@path</code> to @gid')
->fail('Could not change group ownership of temp files in <code>@path</code> to @gid');
+ provision_file()->chgrp(drush_get_option('extract_path') . '/private/config', d('@server_master')->web_group, TRUE)
+ ->succeed('Changed group ownership of config files in <code>@path</code> to @gid')
+ ->fail('Could not change group ownership of config files in <code>@path</code> to @gid');
if (drush_get_option('deploy_replace_site', FALSE)) {
$old = d()->site_path . '.restore';