diff options
author | Jennifer Hodgdon <yahgrp@poplarware.com> | 2012-10-15 13:02:06 -0700 |
---|---|---|
committer | Jennifer Hodgdon <yahgrp@poplarware.com> | 2012-10-15 13:02:06 -0700 |
commit | a5d723152b00a04cc915f3495671a9c7cb2ebca3 (patch) | |
tree | d1b55cb237c5f7779126d9bd31d7765e7844059e /sites/default | |
parent | 10bbaf37a4c63a3cefe7ab1d5f99536ee03d17bb (diff) | |
download | brdo-a5d723152b00a04cc915f3495671a9c7cb2ebca3.tar.gz brdo-a5d723152b00a04cc915f3495671a9c7cb2ebca3.tar.bz2 |
Issue #1553704 by eddie_c: Fix up fast 404 docs in settings.php
Diffstat (limited to 'sites/default')
-rw-r--r-- | sites/default/default.settings.php | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/sites/default/default.settings.php b/sites/default/default.settings.php index 0b12bd353..2ac6ed56b 100644 --- a/sites/default/default.settings.php +++ b/sites/default/default.settings.php @@ -493,15 +493,20 @@ $conf['404_fast_paths'] = '/\.(?:txt|png|gif|jpe?g|css|js|ico|swf|flv|cgi|bat|pl $conf['404_fast_html'] = '<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>'; /** - * By default, fast 404s are returned as part of the normal page request - * process, which will properly serve valid pages that happen to match and will - * also log actual 404s to the Drupal log. Alternatively you can choose to - * return a 404 now by uncommenting the following line. This will reduce server - * load, but will cause even valid pages that happen to match the pattern to - * return 404s, rather than the actual page. It will also prevent the Drupal - * system log entry. Ensure you understand the effects of this before enabling. - * - * To enable this functionality, remove the leading hash sign below. + * By default the page request process will return a fast 404 page for missing + * files if they match the regular expression set in '404_fast_paths' and not + * '404_fast_paths_exclude' above. 404 errors will simultaneously be logged in + * the Drupal system log. + * + * You can choose to return a fast 404 page earlier for missing pages (as soon + * as settings.php is loaded) by uncommenting the line below. This speeds up + * server response time when loading 404 error pages and prevents the 404 error + * from being logged in the Drupal system log. In order to prevent valid pages + * such as image styles and other generated content that may match the + * '404_fast_html' regular expression from returning 404 errors, it is necessary + * to add them to the '404_fast_paths_exclude' regular expression above. Make + * sure that you understand the effects of this feature before uncommenting the + * line below. */ # drupal_fast_404(); |