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