summaryrefslogtreecommitdiffstats
path: root/sites
diff options
context:
space:
mode:
authorAlex Pott2015-08-31 14:19:06 (GMT)
committerAlex Pott2015-08-31 14:19:06 (GMT)
commit6475b8262b49f60d25531d12d2a49b8f1dd92063 (patch)
tree59a4f6abf46c52d2d9a06a539914e0197384fb48 /sites
parentbf5ee20f925b664f8b7622a03a493752c0bc89c8 (diff)
Issue #2455057 by michaellenahan, jhodgdon, jelo: Document (or set up?) fast 404 settings for private image files
Diffstat (limited to 'sites')
-rw-r--r--sites/default/default.settings.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/sites/default/default.settings.php b/sites/default/default.settings.php
index e3e76ad..f590613 100644
--- a/sites/default/default.settings.php
+++ b/sites/default/default.settings.php
@@ -612,7 +612,8 @@ if ($settings['hash_salt']) {
* specific pattern:
* - $conf['system.performance']['fast_404']['exclude_paths']: A regular
* expression to match paths to exclude, such as images generated by image
- * styles, or dynamically-resized images. If you need to add more paths, you
+ * styles, or dynamically-resized images. The default pattern provided below
+ * also excludes the private file system. If you need to add more paths, you
* can add '|path' to the expression.
* - $conf['system.performance']['fast_404']['paths']: A regular expression to
* match paths that should return a simple 404 page, rather than the fully
@@ -623,7 +624,7 @@ if ($settings['hash_salt']) {
*
* Remove the leading hash signs if you would like to alter this functionality.
*/
-# $config['system.performance']['fast_404']['exclude_paths'] = '/\/(?:styles)\//';
+# $config['system.performance']['fast_404']['exclude_paths'] = '/\/(?:styles)|(?:system\/files)\//';
# $config['system.performance']['fast_404']['paths'] = '/\.(?:txt|png|gif|jpe?g|css|js|ico|swf|flv|cgi|bat|pl|dll|exe|asp)$/i';
# $config['system.performance']['fast_404']['html'] = '<!DOCTYPE html><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL "@path" was not found on this server.</p></body></html>';