Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 7ddb2ba

Browse files
authored
Fixes #1243: deployment failures caused by config_split. (#1244)
1 parent a0abe07 commit 7ddb2ba

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

template/config/ci/.htaccess

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Deny all requests from Apache 2.4+.
2+
<IfModule mod_authz_core.c>
3+
Require all denied
4+
</IfModule>
5+
6+
# Deny all requests from Apache 2.0-2.2.
7+
<IfModule !mod_authz_core.c>
8+
Deny from all
9+
</IfModule>
10+
# Turn off all options we don't need.
11+
Options -Indexes -ExecCGI -Includes -MultiViews
12+
13+
# Set the catch-all handler to prevent scripts from being executed.
14+
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
15+
<Files *>
16+
# Override the handler again if we're run later in the evaluation list.
17+
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2013_003
18+
</Files>
19+
20+
# If we know how to do it safely, disable the PHP engine entirely.
21+
<IfModule mod_php5.c>
22+
php_flag engine off
23+
</IfModule>

template/config/ci/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This directory contains configuration to be imported into your Drupal site via config_split for the CI environment.

0 commit comments

Comments
 (0)