Skip to content

Commit 8184ce5

Browse files
authored
Merge pull request #5182 from platformsh/5175-drupal-sample
Update the Drupal sample app configuration
2 parents d09044a + 78a2f38 commit 8184ce5

File tree

1 file changed

+16
-3
lines changed
  • sites/platform/static/files/fetch/appyaml

1 file changed

+16
-3
lines changed

sites/platform/static/files/fetch/appyaml/drupal10

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ web:
116116
# Deny access to all static files, except those specifically allowed below.
117117
allow: false
118118

119+
# Disable global PHP execution, allow only nominated paths to be run.
120+
scripts: false
121+
119122
# Rules for specific URI patterns.
120123
rules:
121124
# Allow access to common static files.
@@ -126,11 +129,21 @@ web:
126129
'^/sitemap\.xml$':
127130
allow: true
128131

129-
# Deny direct access to configuration files.
130-
'^/sites/sites\.php$':
131-
scripts: false
132+
# Allow only a selected set of PHP scripts to be executed.
132133
'^/sites/[^/]+/settings.*?\.php$':
133134
scripts: false
135+
'^/index\.php$':
136+
scripts: true
137+
'^/core/install\.php$':
138+
scripts: true
139+
'^/update\.php$':
140+
scripts: true
141+
'^/core/rebuild\.php':
142+
scripts: true
143+
'^/core/authorize\.php':
144+
scripts: true
145+
'^/core/modules/statistics/statistics\.php':
146+
scripts: true
134147

135148
# The files directory has its own special configuration rules.
136149
'/sites/default/files':

0 commit comments

Comments
 (0)