summaryrefslogtreecommitdiffstatshomepage
path: root/.htaccess
diff options
context:
space:
mode:
authorAlex Pott <alex.a.pott@googlemail.com>2023-12-16 08:22:15 +0000
committerAlex Pott <alex.a.pott@googlemail.com>2023-12-16 08:22:15 +0000
commitde1a11ea785eeb76717187c87e044ccc93022bd5 (patch)
tree902d496b511950302f3f5f35fd5560b5d1d22823 /.htaccess
parented5d89dc18f19686d8dfccdf9cb6a03295181933 (diff)
downloaddrupal-de1a11ea785eeb76717187c87e044ccc93022bd5.tar.gz
drupal-de1a11ea785eeb76717187c87e044ccc93022bd5.zip
Issue #2463967 by Darren Oh, tunic, andypost, alexpott, quietone, mstrelan, longwave: Add PHP settings to .user.ini
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess11
1 files changed, 7 insertions, 4 deletions
diff --git a/.htaccess b/.htaccess
index 4031da475cf..b0b55d58649 100644
--- a/.htaccess
+++ b/.htaccess
@@ -1,9 +1,9 @@
#
-# Apache/PHP/Drupal settings:
+# Apache/mod_php/Drupal settings:
#
# Protect files and directories from prying eyes.
-<FilesMatch "\.(engine|inc|install|make|module|profile|po|sh|.*sql|theme|twig|tpl(\.php)?|xtmpl|yml)(~|\.sw[op]|\.bak|\.orig|\.save)?$|^(\.(?!well-known).*|Entries.*|Repository|Root|Tag|Template|composer\.(json|lock)|web\.config|yarn\.lock|package\.json)$|^#.*#$|\.php(~|\.sw[op]|\.bak|\.orig|\.save)$">
+<FilesMatch "\.(engine|inc|install|make|module|profile|po|sh|.*sql|theme|twig|tpl(\.php)?|xtmpl|yml)(~|\.sw[op]|\.bak|\.orig|\.save)?$|^(\.(?!well-known).*|Entries.*|Repository|Root|Tag|Template|composer\.(json|lock)|web\.config|yarn\.lock|package\.json|\.user\.ini)$|^#.*#$|\.php(~|\.sw[op]|\.bak|\.orig|\.save)$">
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
@@ -24,8 +24,11 @@ AddEncoding gzip svgz
# Most of the following PHP settings cannot be changed at runtime. See
# sites/default/default.settings.php and
-# Drupal\Core\DrupalKernel::bootEnvironment() for settings that can be
-# changed at runtime.
+# Drupal\Core\DrupalKernel::bootEnvironment() for settings that can be changed
+# at runtime.
+#
+# PHP only reads settings from this file if it is running as an Apache module.
+# If PHP is running as a CGI script, see .user.ini.
<IfModule mod_php.c>
php_value assert.active 0
</IfModule>