· 9 years ago · Oct 27, 2016, 12:54 AM
1<?php
2
3/*
4error_reporting(E_ALL);
5ini_set('display_errors', TRUE);
6ini_set('display_startup_errors', TRUE);
7*/
8error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);
9ini_set('display_errors', FALSE);
10ini_set('display_startup_errors', FALSE);
11
12// Increase default xdebug nesting level from 100 to eliminate nesting errors
13ini_set('xdebug.max_nesting_level', 3000);
14
15// Add Varnish as a cache bin.
16//$conf['cache_backends'][] = 'sites/all/modules/varnish/varnish.cache.inc';
17//$conf['cache_class_cache_page'] = 'VarnishCache';
18
19// Memcache
20//$conf['cache_backends'][] = 'sites/all/modules/memcache/memcache.inc';
21//$conf['lock_inc'] = 'sites/all/modules/memcache/memcache-lock.inc';
22//$conf['memcache_stampede_protection'] = TRUE;
23//$conf['cache_default_class'] = 'MemCacheDrupal';
24
25// The 'cache_form' bin must be assigned to non-volatile storage.
26//$conf['cache_class_cache_form'] = 'DrupalDatabaseCache';
27
28// Don't bootstrap the database when serving pages from the cache.
29//$conf['page_cache_without_database'] = TRUE;
30//$conf['page_cache_invoke_hooks'] = FALSE;
31
32//Note that no servers or bins are defined. The default server and bin
33//configuration which is used in this case is equivalant to setting:
34
35//$conf['memcache_servers'] = array('localhost:11211' => 'default');
36
37
38//$conf['cache_backends'][] = 'sites/all/modules/varnish/varnish.cache.inc';
39//$conf['cache_class_cache_page'] = 'VarnishCache';
40//$conf['page_cache_invoke_hooks'] = FALSE;
41//$conf['reverse_proxy'] = TRUE;
42//$conf['cache'] = 1;
43//$conf['reverse_proxy_header'] = 'HTTP_X_FORWARDED_FOR';
44//$conf['reverse_proxy_addresses'] = array('127.0.0.1');
45
46//$conf['cache_backends'][] = 'sites/all/modules/memcache/memcache.inc';
47//$conf['cache_default_class'] = 'MemCacheDrupal';
48//$conf['memcache_key_prefix'] = 'capeann';
49
50
51//$conf['cache_backends'][] = 'sites/all/modules/authcache/authcache.cache.inc';
52//$conf['cache_backends'][] = 'sites/all/modules/authcache/modules/authcache_builtin/authcache_builtin.cache.inc';
53
54
55// Memcache configuration.
56$conf += array(
57 'memcache_extension' => 'Memcache',
58// 'show_memcache_statistics' => 1,
59 'memcache_persistent' => TRUE,
60 'memcache_stampede_protection' => TRUE,
61 'memcache_stampede_semaphore' => 15,
62 'memcache_stampede_wait_time' => 5,
63 'memcache_stampede_wait_limit' => 3,
64 'memcache_key_prefix' => basename(realpath(conf_path())),
65);
66
67// Include cache backends.
68include_once('./includes/cache.inc');
69include_once('./sites/all/modules/memcache/memcache.inc');
70
71
72$conf['cache_backends'][] = 'sites/all/modules/memcache/memcache.inc';
73$conf['cache_default_class'] = 'MemCacheDrupal';
74$conf['cache_class_cache_form'] = 'DrupalDatabaseCache';
75
76// Configure cache servers.
77$conf['memcache_servers'] = array(
78 '127.0.0.1:11211' => 'default',
79);
80
81$conf['memcache_bins'] = array(
82 'cache_performance' => 'default', // performance_logging module
83 'cache' => 'default',
84 'cache_admin_menu' => 'default',
85 'cache_apachesolr' => 'default',
86 'cache_block' => 'default',
87 'cache_bml' => 'default',
88 'cache_bootstrap' => 'default',
89 'cache_field' => 'default',
90 'cache_filter' => 'default',
91// 'cache_form' => 'default', // This cache bin should not be assigned to volatile storage
92 'cache_image' => 'default',
93 'cache_libraries' => 'default',
94 'cache_mailchimp_user' => 'default',
95 'cache_menu' => 'default',
96 'cache_page' => 'default',
97 'cache_path' => 'default',
98 'cache_rules' => 'default',
99 'cache_token' => 'default',
100// 'cache_update' => 'default', // Core's update module expects this to be a database table
101// 'cache_views' => 'default',
102// 'cache_views_data' => 'default',
103);
104
105$conf['cache_class_cache_views'] = 'DrupalDatabaseCache';
106
107//$conf['cache_backends'][] = 'sites/all/modules/memcache_storage/memcache_storage.inc';
108//$conf['cache_default_class'] = 'DrupalDatabaseCache';
109//$conf['cache_class_cache_page'] = 'MemcacheStorage';
110$conf['page_cache_without_database'] = TRUE;
111$conf['page_cache_invoke_hooks'] = FALSE;
112$conf['memcache_storage_debug'] = TRUE;
113
114
115 $conf['cache_backends'][] = 'sites/all/modules/memcache/memcache.inc';
116 $conf['lock_inc'] = 'sites/all/modules/memcache/memcache-lock.inc';
117 $conf['memcache_stampede_protection'] = TRUE;
118 $conf['cache_default_class'] = 'MemCacheDrupal';
119
120 // The 'cache_form' bin must be assigned to non-volatile storage.
121 $conf['cache_class_cache_form'] = 'DrupalDatabaseCache';
122
123 // Don't bootstrap the database when serving pages from the cache.
124 $conf['page_cache_without_database'] = TRUE;
125 $conf['page_cache_invoke_hooks'] = FALSE;
126
127/**
128 * @file
129 * Drupal site-specific configuration file.
130 *
131 * IMPORTANT NOTE:
132 * This file may have been set to read-only by the Drupal installation program.
133 * If you make changes to this file, be sure to protect it again after making
134 * your modifications. Failure to remove write permissions to this file is a
135 * security risk.
136 *
137 * The configuration file to be loaded is based upon the rules below. However
138 * if the multisite aliasing file named sites/sites.php is present, it will be
139 * loaded, and the aliases in the array $sites will override the default
140 * directory rules below. See sites/example.sites.php for more information about
141 * aliases.
142 *
143 * The configuration directory will be discovered by stripping the website's
144 * hostname from left to right and pathname from right to left. The first
145 * configuration file found will be used and any others will be ignored. If no
146 * other configuration file is found then the default configuration file at
147 * 'sites/default' will be used.
148 *
149 * For example, for a fictitious site installed at
150 * http://www.drupal.org:8080/mysite/test/, the 'settings.php' file is searched
151 * for in the following directories:
152 *
153 * - sites/8080.www.drupal.org.mysite.test
154 * - sites/www.drupal.org.mysite.test
155 * - sites/drupal.org.mysite.test
156 * - sites/org.mysite.test
157 *
158 * - sites/8080.www.drupal.org.mysite
159 * - sites/www.drupal.org.mysite
160 * - sites/drupal.org.mysite
161 * - sites/org.mysite
162 *
163 * - sites/8080.www.drupal.org
164 * - sites/www.drupal.org
165 * - sites/drupal.org
166 * - sites/org
167 *
168 * - sites/default
169 *
170 * Note that if you are installing on a non-standard port number, prefix the
171 * hostname with that number. For example,
172 * http://www.drupal.org:8080/mysite/test/ could be loaded from
173 * sites/8080.www.drupal.org.mysite.test/.
174 *
175 * @see example.sites.php
176 * @see conf_path()
177 */
178
179/**
180 * Database settings:
181 *
182 * The $databases array specifies the database connection or
183 * connections that Drupal may use. Drupal is able to connect
184 * to multiple databases, including multiple types of databases,
185 * during the same request.
186 *
187 * Each database connection is specified as an array of settings,
188 * similar to the following:
189 * @code
190 * array(
191 * 'driver' => 'mysql',
192 * 'database' => 'databasename',
193 * 'username' => 'username',
194 * 'password' => 'password',
195 * 'host' => 'localhost',
196 * 'port' => 3306,
197 * 'prefix' => 'myprefix_',
198 * 'collation' => 'utf8_general_ci',
199 * );
200 * @endcode
201 *
202 * The "driver" property indicates what Drupal database driver the
203 * connection should use. This is usually the same as the name of the
204 * database type, such as mysql or sqlite, but not always. The other
205 * properties will vary depending on the driver. For SQLite, you must
206 * specify a database file name in a directory that is writable by the
207 * webserver. For most other drivers, you must specify a
208 * username, password, host, and database name.
209 *
210 * Transaction support is enabled by default for all drivers that support it,
211 * including MySQL. To explicitly disable it, set the 'transactions' key to
212 * FALSE.
213 * Note that some configurations of MySQL, such as the MyISAM engine, don't
214 * support it and will proceed silently even if enabled. If you experience
215 * transaction related crashes with such configuration, set the 'transactions'
216 * key to FALSE.
217 *
218 * For each database, you may optionally specify multiple "target" databases.
219 * A target database allows Drupal to try to send certain queries to a
220 * different database if it can but fall back to the default connection if not.
221 * That is useful for master/slave replication, as Drupal may try to connect
222 * to a slave server when appropriate and if one is not available will simply
223 * fall back to the single master server.
224 *
225 * The general format for the $databases array is as follows:
226 * @code
227 * $databases['default']['default'] = $info_array;
228 * $databases['default']['slave'][] = $info_array;
229 * $databases['default']['slave'][] = $info_array;
230 * $databases['extra']['default'] = $info_array;
231 * @endcode
232 *
233 * In the above example, $info_array is an array of settings described above.
234 * The first line sets a "default" database that has one master database
235 * (the second level default). The second and third lines create an array
236 * of potential slave databases. Drupal will select one at random for a given
237 * request as needed. The fourth line creates a new database with a name of
238 * "extra".
239 *
240 * For a single database configuration, the following is sufficient:
241 * @code
242 * $databases['default']['default'] = array(
243 * 'driver' => 'mysql',
244 * 'database' => 'databasename',
245 * 'username' => 'username',
246 * 'password' => 'password',
247 * 'host' => 'localhost',
248 * 'prefix' => 'main_',
249 * 'collation' => 'utf8_general_ci',
250 * );
251 * @endcode
252 *
253 * You can optionally set prefixes for some or all database table names
254 * by using the 'prefix' setting. If a prefix is specified, the table
255 * name will be prepended with its value. Be sure to use valid database
256 * characters only, usually alphanumeric and underscore. If no prefixes
257 * are desired, leave it as an empty string ''.
258 *
259 * To have all database names prefixed, set 'prefix' as a string:
260 * @code
261 * 'prefix' => 'main_',
262 * @endcode
263 * To provide prefixes for specific tables, set 'prefix' as an array.
264 * The array's keys are the table names and the values are the prefixes.
265 * The 'default' element is mandatory and holds the prefix for any tables
266 * not specified elsewhere in the array. Example:
267 * @code
268 * 'prefix' => array(
269 * 'default' => 'main_',
270 * 'users' => 'shared_',
271 * 'sessions' => 'shared_',
272 * 'role' => 'shared_',
273 * 'authmap' => 'shared_',
274 * ),
275 * @endcode
276 * You can also use a reference to a schema/database as a prefix. This may be
277 * useful if your Drupal installation exists in a schema that is not the default
278 * or you want to access several databases from the same code base at the same
279 * time.
280 * Example:
281 * @code
282 * 'prefix' => array(
283 * 'default' => 'main.',
284 * 'users' => 'shared.',
285 * 'sessions' => 'shared.',
286 * 'role' => 'shared.',
287 * 'authmap' => 'shared.',
288 * );
289 * @endcode
290 * NOTE: MySQL and SQLite's definition of a schema is a database.
291 *
292 * Advanced users can add or override initial commands to execute when
293 * connecting to the database server, as well as PDO connection settings. For
294 * example, to enable MySQL SELECT queries to exceed the max_join_size system
295 * variable, and to reduce the database connection timeout to 5 seconds:
296 *
297 * @code
298 * $databases['default']['default'] = array(
299 * 'init_commands' => array(
300 * 'big_selects' => 'SET SQL_BIG_SELECTS=1',
301 * ),
302 * 'pdo' => array(
303 * PDO::ATTR_TIMEOUT => 5,
304 * ),
305 * );
306 * @endcode
307 *
308 * WARNING: These defaults are designed for database portability. Changing them
309 * may cause unexpected behavior, including potential data loss.
310 *
311 * @see DatabaseConnection_mysql::__construct
312 * @see DatabaseConnection_pgsql::__construct
313 * @see DatabaseConnection_sqlite::__construct
314 *
315 * Database configuration format:
316 * @code
317 * $databases['default']['default'] = array(
318 * 'driver' => 'mysql',
319 * 'database' => 'databasename',
320 * 'username' => 'username',
321 * 'password' => 'password',
322 * 'host' => 'localhost',
323 * 'prefix' => '',
324 * );
325 * $databases['default']['default'] = array(
326 * 'driver' => 'pgsql',
327 * 'database' => 'databasename',
328 * 'username' => 'username',
329 * 'password' => 'password',
330 * 'host' => 'localhost',
331 * 'prefix' => '',
332 * );
333 * $databases['default']['default'] = array(
334 * 'driver' => 'sqlite',
335 * 'database' => '/path/to/databasefilename',
336 * );
337 * @endcode
338 */
339$databases = array (
340 'default' =>
341 array (
342 'default' =>
343 array (
344 'database' => 'gladlynew',
345// 'database' => 'gladlydo',
346// 'username' => 'root',
347 'username' => 'gladlynew',
348 'password' => 'M3huFe6XH3DANH3KCpRQ',
349// 'password' => 'M3huFe6XH3DANH3KCpRQ',
350// 'host' => '162.242.219.153',
351 'host' => 'localhost',
352 'port' => '',
353 'driver' => 'mysql',
354 'prefix' => '',
355 ),
356 ),
357);
358
359/**
360 * Access control for update.php script.
361 *
362 * If you are updating your Drupal installation using the update.php script but
363 * are not logged in using either an account with the "Administer software
364 * updates" permission or the site maintenance account (the account that was
365 * created during installation), you will need to modify the access check
366 * statement below. Change the FALSE to a TRUE to disable the access check.
367 * After finishing the upgrade, be sure to open this file again and change the
368 * TRUE back to a FALSE!
369 */
370$update_free_access = FALSE;
371
372/**
373 * Salt for one-time login links and cancel links, form tokens, etc.
374 *
375 * This variable will be set to a random value by the installer. All one-time
376 * login links will be invalidated if the value is changed. Note that if your
377 * site is deployed on a cluster of web servers, you must ensure that this
378 * variable has the same value on each server. If this variable is empty, a hash
379 * of the serialized database credentials will be used as a fallback salt.
380 *
381 * For enhanced security, you may set this variable to a value using the
382 * contents of a file outside your docroot that is never saved together
383 * with any backups of your Drupal files and database.
384 *
385 * Example:
386 * $drupal_hash_salt = file_get_contents('/home/example/salt.txt');
387 *
388 */
389$drupal_hash_salt = 'QAJfV4Oz51-wpWRdl-I5pSem033sKzQgBmzjE_gqns0';
390
391/**
392 * Base URL (optional).
393 *
394 * If Drupal is generating incorrect URLs on your site, which could
395 * be in HTML headers (links to CSS and JS files) or visible links on pages
396 * (such as in menus), uncomment the Base URL statement below (remove the
397 * leading hash sign) and fill in the absolute URL to your Drupal installation.
398 *
399 * You might also want to force users to use a given domain.
400 * See the .htaccess file for more information.
401 *
402 * Examples:
403 * $base_url = 'http://www.example.com';
404 * $base_url = 'http://www.example.com:8888';
405 * $base_url = 'http://www.example.com/drupal';
406 * $base_url = 'https://www.example.com:8888/drupal';
407 *
408 * It is not allowed to have a trailing slash; Drupal will add it
409 * for you.
410 */
411# $base_url = 'http://www.example.com'; // NO trailing slash!
412
413/**
414 * PHP settings:
415 *
416 * To see what PHP settings are possible, including whether they can be set at
417 * runtime (by using ini_set()), read the PHP documentation:
418 * http://www.php.net/manual/ini.list.php
419 * See drupal_environment_initialize() in includes/bootstrap.inc for required
420 * runtime settings and the .htaccess file for non-runtime settings. Settings
421 * defined there should not be duplicated here so as to avoid conflict issues.
422 */
423
424/**
425 * Some distributions of Linux (most notably Debian) ship their PHP
426 * installations with garbage collection (gc) disabled. Since Drupal depends on
427 * PHP's garbage collection for clearing sessions, ensure that garbage
428 * collection occurs by using the most common settings.
429 */
430ini_set('session.gc_probability', 1);
431ini_set('session.gc_divisor', 100);
432
433/**
434 * Set session lifetime (in seconds), i.e. the time from the user's last visit
435 * to the active session may be deleted by the session garbage collector. When
436 * a session is deleted, authenticated users are logged out, and the contents
437 * of the user's $_SESSION variable is discarded.
438 */
439ini_set('session.gc_maxlifetime', 200000);
440
441/**
442 * Set session cookie lifetime (in seconds), i.e. the time from the session is
443 * created to the cookie expires, i.e. when the browser is expected to discard
444 * the cookie. The value 0 means "until the browser is closed".
445 */
446ini_set('session.cookie_lifetime', 2000000);
447
448/**
449 * If you encounter a situation where users post a large amount of text, and
450 * the result is stripped out upon viewing but can still be edited, Drupal's
451 * output filter may not have sufficient memory to process it. If you
452 * experience this issue, you may wish to uncomment the following two lines
453 * and increase the limits of these variables. For more information, see
454 * http://php.net/manual/pcre.configuration.php.
455 */
456# ini_set('pcre.backtrack_limit', 200000);
457# ini_set('pcre.recursion_limit', 200000);
458
459/**
460 * Drupal automatically generates a unique session cookie name for each site
461 * based on its full domain name. If you have multiple domains pointing at the
462 * same Drupal site, you can either redirect them all to a single domain (see
463 * comment in .htaccess), or uncomment the line below and specify their shared
464 * base domain. Doing so assures that users remain logged in as they cross
465 * between your various domains. Make sure to always start the $cookie_domain
466 * with a leading dot, as per RFC 2109.
467 */
468# $cookie_domain = '.example.com';
469
470/**
471 * Variable overrides:
472 *
473 * To override specific entries in the 'variable' table for this site,
474 * set them here. You usually don't need to use this feature. This is
475 * useful in a configuration file for a vhost or directory, rather than
476 * the default settings.php. Any configuration setting from the 'variable'
477 * table can be given a new value. Note that any values you provide in
478 * these variable overrides will not be modifiable from the Drupal
479 * administration interface.
480 *
481 * The following overrides are examples:
482 * - site_name: Defines the site's name.
483 * - theme_default: Defines the default theme for this site.
484 * - anonymous: Defines the human-readable name of anonymous users.
485 * Remove the leading hash signs to enable.
486 */
487# $conf['site_name'] = 'My Drupal site';
488# $conf['theme_default'] = 'garland';
489# $conf['anonymous'] = 'Visitor';
490
491/**
492 * A custom theme can be set for the offline page. This applies when the site
493 * is explicitly set to maintenance mode through the administration page or when
494 * the database is inactive due to an error. It can be set through the
495 * 'maintenance_theme' key. The template file should also be copied into the
496 * theme. It is located inside 'modules/system/maintenance-page.tpl.php'.
497 * Note: This setting does not apply to installation and update pages.
498 */
499# $conf['maintenance_theme'] = 'bartik';
500
501/**
502 * Reverse Proxy Configuration:
503 *
504 * Reverse proxy servers are often used to enhance the performance
505 * of heavily visited sites and may also provide other site caching,
506 * security, or encryption benefits. In an environment where Drupal
507 * is behind a reverse proxy, the real IP address of the client should
508 * be determined such that the correct client IP address is available
509 * to Drupal's logging, statistics, and access management systems. In
510 * the most simple scenario, the proxy server will add an
511 * X-Forwarded-For header to the request that contains the client IP
512 * address. However, HTTP headers are vulnerable to spoofing, where a
513 * malicious client could bypass restrictions by setting the
514 * X-Forwarded-For header directly. Therefore, Drupal's proxy
515 * configuration requires the IP addresses of all remote proxies to be
516 * specified in $conf['reverse_proxy_addresses'] to work correctly.
517 *
518 * Enable this setting to get Drupal to determine the client IP from
519 * the X-Forwarded-For header (or $conf['reverse_proxy_header'] if set).
520 * If you are unsure about this setting, do not have a reverse proxy,
521 * or Drupal operates in a shared hosting environment, this setting
522 * should remain commented out.
523 *
524 * In order for this setting to be used you must specify every possible
525 * reverse proxy IP address in $conf['reverse_proxy_addresses'].
526 * If a complete list of reverse proxies is not available in your
527 * environment (for example, if you use a CDN) you may set the
528 * $_SERVER['REMOTE_ADDR'] variable directly in settings.php.
529 * Be aware, however, that it is likely that this would allow IP
530 * address spoofing unless more advanced precautions are taken.
531 */
532# $conf['reverse_proxy'] = TRUE;
533
534/**
535 * Specify every reverse proxy IP address in your environment.
536 * This setting is required if $conf['reverse_proxy'] is TRUE.
537 */
538# $conf['reverse_proxy_addresses'] = array('a.b.c.d', ...);
539
540/**
541 * Set this value if your proxy server sends the client IP in a header
542 * other than X-Forwarded-For.
543 */
544# $conf['reverse_proxy_header'] = 'HTTP_X_CLUSTER_CLIENT_IP';
545
546/**
547 * Page caching:
548 *
549 * By default, Drupal sends a "Vary: Cookie" HTTP header for anonymous page
550 * views. This tells a HTTP proxy that it may return a page from its local
551 * cache without contacting the web server, if the user sends the same Cookie
552 * header as the user who originally requested the cached page. Without "Vary:
553 * Cookie", authenticated users would also be served the anonymous page from
554 * the cache. If the site has mostly anonymous users except a few known
555 * editors/administrators, the Vary header can be omitted. This allows for
556 * better caching in HTTP proxies (including reverse proxies), i.e. even if
557 * clients send different cookies, they still get content served from the cache.
558 * However, authenticated users should access the site directly (i.e. not use an
559 * HTTP proxy, and bypass the reverse proxy if one is used) in order to avoid
560 * getting cached pages from the proxy.
561 */
562# $conf['omit_vary_cookie'] = TRUE;
563
564/**
565 * CSS/JS aggregated file gzip compression:
566 *
567 * By default, when CSS or JS aggregation and clean URLs are enabled Drupal will
568 * store a gzip compressed (.gz) copy of the aggregated files. If this file is
569 * available then rewrite rules in the default .htaccess file will serve these
570 * files to browsers that accept gzip encoded content. This allows pages to load
571 * faster for these users and has minimal impact on server load. If you are
572 * using a webserver other than Apache httpd, or a caching reverse proxy that is
573 * configured to cache and compress these files itself you may want to uncomment
574 * one or both of the below lines, which will prevent gzip files being stored.
575 */
576# $conf['css_gzip_compression'] = FALSE;
577# $conf['js_gzip_compression'] = FALSE;
578
579/**
580 * Block caching:
581 *
582 * Block caching may not be compatible with node access modules depending on
583 * how the original block cache policy is defined by the module that provides
584 * the block. By default, Drupal therefore disables block caching when one or
585 * more modules implement hook_node_grants(). If you consider block caching to
586 * be safe on your site and want to bypass this restriction, uncomment the line
587 * below.
588 */
589# $conf['block_cache_bypass_node_grants'] = TRUE;
590
591/**
592 * String overrides:
593 *
594 * To override specific strings on your site with or without enabling the Locale
595 * module, add an entry to this list. This functionality allows you to change
596 * a small number of your site's default English language interface strings.
597 *
598 * Remove the leading hash signs to enable.
599 */
600 $conf['locale_custom_strings_en'][''] = array(
601 '-- Choose --' => '-- New --',
602 );
603
604/**
605 *
606 * IP blocking:
607 *
608 * To bypass database queries for denied IP addresses, use this setting.
609 * Drupal queries the {blocked_ips} table by default on every page request
610 * for both authenticated and anonymous users. This allows the system to
611 * block IP addresses from within the administrative interface and before any
612 * modules are loaded. However on high traffic websites you may want to avoid
613 * this query, allowing you to bypass database access altogether for anonymous
614 * users under certain caching configurations.
615 *
616 * If using this setting, you will need to add back any IP addresses which
617 * you may have blocked via the administrative interface. Each element of this
618 * array represents a blocked IP address. Uncommenting the array and leaving it
619 * empty will have the effect of disabling IP blocking on your site.
620 *
621 * Remove the leading hash signs to enable.
622 */
623# $conf['blocked_ips'] = array(
624# 'a.b.c.d',
625# );
626
627/**
628 * Fast 404 pages:
629 *
630 * Drupal can generate fully themed 404 pages. However, some of these responses
631 * are for images or other resource files that are not displayed to the user.
632 * This can waste bandwidth, and also generate server load.
633 *
634 * The options below return a simple, fast 404 page for URLs matching a
635 * specific pattern:
636 * - 404_fast_paths_exclude: A regular expression to match paths to exclude,
637 * such as images generated by image styles, or dynamically-resized images.
638 * If you need to add more paths, you can add '|path' to the expression.
639 * - 404_fast_paths: A regular expression to match paths that should return a
640 * simple 404 page, rather than the fully themed 404 page. If you don't have
641 * any aliases ending in htm or html you can add '|s?html?' to the expression.
642 * - 404_fast_html: The html to return for simple 404 pages.
643 *
644 * Add leading hash signs if you would like to disable this functionality.
645 */
646$conf['404_fast_paths_exclude'] = '/\/(?:styles)\//';
647$conf['404_fast_paths'] = '/\.(?:txt|png|gif|jpe?g|css|js|ico|swf|flv|cgi|bat|pl|dll|exe|asp)$/i';
648$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>';
649
650/**
651 * By default the page request process will return a fast 404 page for missing
652 * files if they match the regular expression set in '404_fast_paths' and not
653 * '404_fast_paths_exclude' above. 404 errors will simultaneously be logged in
654 * the Drupal system log.
655 *
656 * You can choose to return a fast 404 page earlier for missing pages (as soon
657 * as settings.php is loaded) by uncommenting the line below. This speeds up
658 * server response time when loading 404 error pages and prevents the 404 error
659 * from being logged in the Drupal system log. In order to prevent valid pages
660 * such as image styles and other generated content that may match the
661 * '404_fast_paths' regular expression from returning 404 errors, it is
662 * necessary to add them to the '404_fast_paths_exclude' regular expression
663 * above. Make sure that you understand the effects of this feature before
664 * uncommenting the line below.
665 */
666# drupal_fast_404();
667
668/**
669 * External access proxy settings:
670 *
671 * If your site must access the Internet via a web proxy then you can enter
672 * the proxy settings here. Currently only basic authentication is supported
673 * by using the username and password variables. The proxy_user_agent variable
674 * can be set to NULL for proxies that require no User-Agent header or to a
675 * non-empty string for proxies that limit requests to a specific agent. The
676 * proxy_exceptions variable is an array of host names to be accessed directly,
677 * not via proxy.
678 */
679# $conf['proxy_server'] = '';
680# $conf['proxy_port'] = 8080;
681# $conf['proxy_username'] = '';
682# $conf['proxy_password'] = '';
683# $conf['proxy_user_agent'] = '';
684# $conf['proxy_exceptions'] = array('127.0.0.1', 'localhost');
685
686/**
687 * Authorized file system operations:
688 *
689 * The Update manager module included with Drupal provides a mechanism for
690 * site administrators to securely install missing updates for the site
691 * directly through the web user interface. On securely-configured servers,
692 * the Update manager will require the administrator to provide SSH or FTP
693 * credentials before allowing the installation to proceed; this allows the
694 * site to update the new files as the user who owns all the Drupal files,
695 * instead of as the user the webserver is running as. On servers where the
696 * webserver user is itself the owner of the Drupal files, the administrator
697 * will not be prompted for SSH or FTP credentials (note that these server
698 * setups are common on shared hosting, but are inherently insecure).
699 *
700 * Some sites might wish to disable the above functionality, and only update
701 * the code directly via SSH or FTP themselves. This setting completely
702 * disables all functionality related to these authorized file operations.
703 *
704 * @see http://drupal.org/node/244924
705 *
706 * Remove the leading hash signs to disable.
707 */
708# $conf['allow_authorize_operations'] = FALSE;