diff options
author | David Rothstein <drothstein@gmail.com> | 2015-10-12 17:53:46 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2015-10-12 17:53:46 -0400 |
commit | 6e6c3dba67cda8b218befae00422d361b3990942 (patch) | |
tree | cf2a2cdb2d2c8c8a97a9f1ef43d735d33e90f5ca /sites | |
parent | 00206a4d7f87981b3b1212942ce65f371c0cb3ae (diff) | |
download | brdo-6e6c3dba67cda8b218befae00422d361b3990942.tar.gz brdo-6e6c3dba67cda8b218befae00422d361b3990942.tar.bz2 |
Issue #2455057 by michaellenahan, jhodgdon, jelo: Fix fast 404 settings for private image files
Diffstat (limited to 'sites')
-rw-r--r-- | sites/default/default.settings.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sites/default/default.settings.php b/sites/default/default.settings.php index 562f99855..214e93957 100644 --- a/sites/default/default.settings.php +++ b/sites/default/default.settings.php @@ -494,6 +494,7 @@ ini_set('session.cookie_lifetime', 2000000); * specific pattern: * - 404_fast_paths_exclude: A regular expression to match paths to exclude, * such as images generated by image 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. * - 404_fast_paths: A regular expression to match paths that should return a * simple 404 page, rather than the fully themed 404 page. If you don't have @@ -502,7 +503,7 @@ ini_set('session.cookie_lifetime', 2000000); * * Add leading hash signs if you would like to disable this functionality. */ -$conf['404_fast_paths_exclude'] = '/\/(?:styles)\//'; +$conf['404_fast_paths_exclude'] = '/\/(?:styles)|(?:system\/files)\//'; $conf['404_fast_paths'] = '/\.(?:txt|png|gif|jpe?g|css|js|ico|swf|flv|cgi|bat|pl|dll|exe|asp)$/i'; $conf['404_fast_html'] = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><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>'; |