blob: d767692097dbdb274a40f7f38c1590320d3c12bf [file] [log] [blame]
darwineld8bef8a2014-02-11 20:13:22 +01001<?php
darwineld8bef8a2014-02-11 20:13:22 +01002defined('BASEPATH') OR exit('No direct script access allowed');
Derek Allard2067d1a2008-11-13 22:59:24 +00003
4/*
5|--------------------------------------------------------------------------
6| Base Site URL
7|--------------------------------------------------------------------------
8|
9| URL to your CodeIgniter root. Typically this will be your base URL,
10| WITH a trailing slash:
11|
12| http://example.com/
13|
Andrey Andreev815ac8a2014-10-28 21:32:20 +020014| If this is not set then CodeIgniter will try guess the protocol, domain
15| and path to your installation. However, you should always configure this
16| explicitly and never rely on auto-guessing, especially in production
17| environments.
Phil Sturgeon4df8b222010-12-15 14:23:14 +000018|
Derek Allard2067d1a2008-11-13 22:59:24 +000019*/
Andrey Andreev815ac8a2014-10-28 21:32:20 +020020$config['base_url'] = '';
Derek Allard2067d1a2008-11-13 22:59:24 +000021
22/*
23|--------------------------------------------------------------------------
24| Index File
25|--------------------------------------------------------------------------
26|
27| Typically this will be your index.php file, unless you've renamed it to
28| something else. If you are using mod_rewrite to remove the page set this
29| variable so that it is blank.
30|
31*/
Phil Sturgeon4df8b222010-12-15 14:23:14 +000032$config['index_page'] = 'index.php';
Derek Allard2067d1a2008-11-13 22:59:24 +000033
34/*
35|--------------------------------------------------------------------------
36| URI PROTOCOL
37|--------------------------------------------------------------------------
38|
39| This item determines which server global should be used to retrieve the
Andrey Andreev0ae4e6c2015-02-18 21:14:55 +020040| URI string. The default setting of 'REQUEST_URI' works for most servers.
Derek Allard2067d1a2008-11-13 22:59:24 +000041| If your links do not seem to work, try one of the other delicious flavors:
42|
Andrey Andreev0ae4e6c2015-02-18 21:14:55 +020043| 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
44| 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
45| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
Derek Allard2067d1a2008-11-13 22:59:24 +000046|
Andrey Andreev0ae4e6c2015-02-18 21:14:55 +020047| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
Derek Allard2067d1a2008-11-13 22:59:24 +000048*/
Andrey Andreev0ae4e6c2015-02-18 21:14:55 +020049$config['uri_protocol'] = 'REQUEST_URI';
Derek Allard2067d1a2008-11-13 22:59:24 +000050
51/*
52|--------------------------------------------------------------------------
53| URL suffix
54|--------------------------------------------------------------------------
55|
56| This option allows you to add a suffix to all URLs generated by CodeIgniter.
57| For more information please see the user guide:
58|
59| http://codeigniter.com/user_guide/general/urls.html
60*/
61
Phil Sturgeon4df8b222010-12-15 14:23:14 +000062$config['url_suffix'] = '';
Derek Allard2067d1a2008-11-13 22:59:24 +000063
64/*
65|--------------------------------------------------------------------------
66| Default Language
67|--------------------------------------------------------------------------
68|
69| This determines which set of language files should be used. Make sure
70| there is an available translation if you intend to use something other
71| than english.
72|
73*/
Phil Sturgeon4df8b222010-12-15 14:23:14 +000074$config['language'] = 'english';
Derek Allard2067d1a2008-11-13 22:59:24 +000075
76/*
77|--------------------------------------------------------------------------
78| Default Character Set
79|--------------------------------------------------------------------------
80|
81| This determines which character set is used by default in various methods
82| that require a character set to be provided.
83|
freewil8cc0cfe2011-08-27 21:53:00 -040084| See http://php.net/htmlspecialchars for a list of supported charsets.
85|
Derek Allard2067d1a2008-11-13 22:59:24 +000086*/
Phil Sturgeon4df8b222010-12-15 14:23:14 +000087$config['charset'] = 'UTF-8';
Derek Allard2067d1a2008-11-13 22:59:24 +000088
89/*
90|--------------------------------------------------------------------------
91| Enable/Disable System Hooks
92|--------------------------------------------------------------------------
93|
Phil Sturgeon4df8b222010-12-15 14:23:14 +000094| If you would like to use the 'hooks' feature you must enable it by
Derek Jones4b9c6292011-07-01 17:40:48 -050095| setting this variable to TRUE (boolean). See the user guide for details.
Derek Allard2067d1a2008-11-13 22:59:24 +000096|
97*/
98$config['enable_hooks'] = FALSE;
99
Derek Allard2067d1a2008-11-13 22:59:24 +0000100/*
101|--------------------------------------------------------------------------
102| Class Extension Prefix
103|--------------------------------------------------------------------------
104|
105| This item allows you to set the filename/classname prefix when extending
Derek Jones4b9c6292011-07-01 17:40:48 -0500106| native libraries. For more information please see the user guide:
Derek Allard2067d1a2008-11-13 22:59:24 +0000107|
108| http://codeigniter.com/user_guide/general/core_classes.html
109| http://codeigniter.com/user_guide/general/creating_libraries.html
110|
111*/
112$config['subclass_prefix'] = 'MY_';
113
Andrey Andreeved86ee12014-07-11 19:48:37 +0300114/*
115|--------------------------------------------------------------------------
116| Composer auto-loading
117|--------------------------------------------------------------------------
118|
119| Enabling this setting will tell CodeIgniter to look for a Composer
120| package auto-loader script in application/vendor/autoload.php.
121|
122| $config['composer_autoload'] = TRUE;
123|
124| Or if you have your vendor/ directory located somewhere else, you
125| can opt to set a specific path as well:
126|
127| $config['composer_autoload'] = '/path/to/vendor/autoload.php';
128|
129| For more information about Composer, please visit http://getcomposer.org/
130|
131| Note: This will NOT disable or override the CodeIgniter-specific
132| autoloading (application/config/autoload.php)
133*/
134$config['composer_autoload'] = FALSE;
Derek Allard2067d1a2008-11-13 22:59:24 +0000135
136/*
137|--------------------------------------------------------------------------
138| Allowed URL Characters
139|--------------------------------------------------------------------------
140|
Andrey Andreevde14aa52014-01-15 15:51:08 +0200141| This lets you specify which characters are permitted within your URLs.
142| When someone tries to submit a URL with disallowed characters they will
143| get a warning message.
Derek Allard2067d1a2008-11-13 22:59:24 +0000144|
145| As a security measure you are STRONGLY encouraged to restrict URLs to
Derek Jones4b9c6292011-07-01 17:40:48 -0500146| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
Derek Allard2067d1a2008-11-13 22:59:24 +0000147|
148| Leave blank to allow all characters -- but only if you are insane.
149|
Andrey Andreevde14aa52014-01-15 15:51:08 +0200150| The configured value is actually a regular expression character group
151| and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
152|
Derek Allard2067d1a2008-11-13 22:59:24 +0000153| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
154|
155*/
156$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
157
158
159/*
160|--------------------------------------------------------------------------
161| Enable Query Strings
162|--------------------------------------------------------------------------
163|
164| By default CodeIgniter uses search-engine friendly segment based URLs:
165| example.com/who/what/where/
166|
Derek Jones4b9c6292011-07-01 17:40:48 -0500167| By default CodeIgniter enables access to the $_GET array. If for some
Dan Horrigan65d603e2010-12-15 08:38:30 -0500168| reason you would like to disable it, set 'allow_get_array' to FALSE.
169|
Derek Allard2067d1a2008-11-13 22:59:24 +0000170| You can optionally enable standard query string based URLs:
171| example.com?who=me&what=something&where=here
172|
173| Options are: TRUE or FALSE (boolean)
174|
Phil Sturgeon4df8b222010-12-15 14:23:14 +0000175| The other items let you set the query string 'words' that will
Derek Allard2067d1a2008-11-13 22:59:24 +0000176| invoke your controllers and its functions:
177| example.com/index.php?c=controller&m=function
178|
179| Please note that some of the helpers won't work as expected when
180| this feature is enabled, since CodeIgniter is designed primarily to
181| use segment based URLs.
182|
183*/
Andrey Andreev81c93472014-11-11 12:36:30 +0200184$config['allow_get_array'] = TRUE;
Derek Allard2067d1a2008-11-13 22:59:24 +0000185$config['enable_query_strings'] = FALSE;
Andrey Andreev81c93472014-11-11 12:36:30 +0200186$config['controller_trigger'] = 'c';
187$config['function_trigger'] = 'm';
188$config['directory_trigger'] = 'd';
Derek Allard2067d1a2008-11-13 22:59:24 +0000189
190/*
191|--------------------------------------------------------------------------
192| Error Logging Threshold
193|--------------------------------------------------------------------------
194|
Derek Allard2067d1a2008-11-13 22:59:24 +0000195| You can enable error logging by setting a threshold over zero. The
196| threshold determines what gets logged. Threshold options are:
197|
198| 0 = Disables logging, Error logging TURNED OFF
199| 1 = Error Messages (including PHP errors)
200| 2 = Debug Messages
201| 3 = Informational Messages
202| 4 = All Messages
203|
Andrey Andreev43ba5a22015-03-01 18:17:28 +0200204| You can also pass an array with threshold levels to show individual error types
Iban Eguia83105952012-03-27 18:18:15 +0200205|
Nithin333f9f92011-08-21 16:52:06 -0400206| array(2) = Debug Messages, without Error Messages
207|
Derek Allard2067d1a2008-11-13 22:59:24 +0000208| For a live site you'll usually only enable Errors (1) to be logged otherwise
209| your log files will fill up very fast.
210|
211*/
212$config['log_threshold'] = 0;
213
214/*
215|--------------------------------------------------------------------------
216| Error Logging Directory Path
217|--------------------------------------------------------------------------
218|
219| Leave this BLANK unless you would like to set something other than the default
vlakoff6cf456d2014-04-14 14:38:29 +0200220| application/logs/ directory. Use a full server path with trailing slash.
Derek Allard2067d1a2008-11-13 22:59:24 +0000221|
222*/
223$config['log_path'] = '';
224
225/*
226|--------------------------------------------------------------------------
Chris Passas0bd6b282013-02-13 14:16:18 -0500227| Log File Extension
228|--------------------------------------------------------------------------
229|
Andrey Andreeva107a0f2013-02-15 22:30:31 +0200230| The default filename extension for log files. The default 'php' allows for
231| protecting the log files via basic scripting, when they are to be stored
232| under a publicly accessible directory.
233|
234| Note: Leaving it blank will default to 'php'.
Chris Passas0bd6b282013-02-13 14:16:18 -0500235|
236*/
237$config['log_file_extension'] = '';
238
239/*
240|--------------------------------------------------------------------------
Andrey Andreev45965742014-08-27 20:40:11 +0300241| Log File Permissions
242|--------------------------------------------------------------------------
243|
244| The file system permissions to be applied on newly created log files.
245|
246| IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
247| integer notation (i.e. 0700, 0644, etc.)
248*/
249$config['log_file_permissions'] = 0644;
250
251/*
252|--------------------------------------------------------------------------
Derek Allard2067d1a2008-11-13 22:59:24 +0000253| Date Format for Logs
254|--------------------------------------------------------------------------
255|
256| Each item that is logged has an associated date. You can use PHP date
257| codes to set your own date formatting
258|
259*/
260$config['log_date_format'] = 'Y-m-d H:i:s';
261
262/*
263|--------------------------------------------------------------------------
vlakoff511a6b82014-04-14 14:33:55 +0200264| Error Views Directory Path
vlakoffcdf3dfa2014-04-12 07:33:42 +0200265|--------------------------------------------------------------------------
266|
267| Leave this BLANK unless you would like to set something other than the default
vlakoff6cf456d2014-04-14 14:38:29 +0200268| application/views/errors/ directory. Use a full server path with trailing slash.
vlakoffcdf3dfa2014-04-12 07:33:42 +0200269|
270*/
vlakoff511a6b82014-04-14 14:33:55 +0200271$config['error_views_path'] = '';
vlakoffcdf3dfa2014-04-12 07:33:42 +0200272
273/*
274|--------------------------------------------------------------------------
Derek Allard2067d1a2008-11-13 22:59:24 +0000275| Cache Directory Path
276|--------------------------------------------------------------------------
277|
278| Leave this BLANK unless you would like to set something other than the default
vlakoff6cf456d2014-04-14 14:38:29 +0200279| application/cache/ directory. Use a full server path with trailing slash.
Derek Allard2067d1a2008-11-13 22:59:24 +0000280|
281*/
282$config['cache_path'] = '';
283
284/*
285|--------------------------------------------------------------------------
Andrey Andreeva704aa72014-12-04 12:37:07 +0200286| Cache Include Query String
287|--------------------------------------------------------------------------
288|
289| Set this to TRUE if you want to use different cache files depending on the
290| URL query string. Please be aware this might result in numerous cache files.
291|
292*/
293$config['cache_query_string'] = FALSE;
294
295/*
296|--------------------------------------------------------------------------
Derek Allard2067d1a2008-11-13 22:59:24 +0000297| Encryption Key
298|--------------------------------------------------------------------------
299|
Andrey Andreeva7e24ec2015-01-21 11:18:32 +0200300| If you use the Encryption class, you must set an encryption key.
Andrey Andreev9e82b0d2015-01-19 13:26:46 +0200301| See the user guide for more info.
Iban Eguia83105952012-03-27 18:18:15 +0200302|
Kyle Ridolfo6a33e552011-10-27 15:40:06 -0300303| http://codeigniter.com/user_guide/libraries/encryption.html
Derek Allard2067d1a2008-11-13 22:59:24 +0000304|
305*/
Phil Sturgeon4df8b222010-12-15 14:23:14 +0000306$config['encryption_key'] = '';
Derek Allard2067d1a2008-11-13 22:59:24 +0000307
308/*
309|--------------------------------------------------------------------------
310| Session Variables
311|--------------------------------------------------------------------------
312|
Andrey Andreevdfb39be2014-10-06 01:50:14 +0300313| 'sess_driver'
314|
Andrey Andreeva8f29f92014-11-10 18:55:55 +0200315| The storage driver to use: files, database, redis, memcached
Andrey Andreevdfb39be2014-10-06 01:50:14 +0300316|
317| 'sess_cookie_name'
318|
319| The session cookie name, must contain only [0-9a-z_-] characters
320|
321| 'sess_expiration'
322|
323| The number of SECONDS you want the session to last.
324| Setting to 0 (zero) means expire when the browser is closed.
325|
326| 'sess_save_path'
327|
Calvin Tamd2d21e82015-07-04 12:54:51 -0700328| The location to save sessions to, driver dependent.
Andrey Andreev973a6542015-01-19 13:25:24 +0200329|
Andrey Andreev1bd697c2015-02-02 14:07:57 +0200330| For the 'files' driver, it's a path to a writable directory.
Andrey Andreevdd8c0ed2015-03-14 17:01:36 +0200331| WARNING: Only absolute paths are supported!
332|
Andrey Andreev973a6542015-01-19 13:25:24 +0200333| For the 'database' driver, it's a table name.
334| Please read up the manual for the format with other session drivers.
Andrey Andreevdfb39be2014-10-06 01:50:14 +0300335|
Andrey Andreev1bd697c2015-02-02 14:07:57 +0200336| IMPORTANT: You are REQUIRED to set a valid save path!
337|
Andrey Andreevdfb39be2014-10-06 01:50:14 +0300338| 'sess_match_ip'
339|
340| Whether to match the user's IP address when reading the session data.
341|
342| 'sess_time_to_update'
343|
344| How many seconds between CI regenerating the session ID.
345|
Andrey Andreev4e7f85a2015-02-07 19:33:48 +0200346| 'sess_regenerate_destroy'
Andrey Andreev789b1fe2015-02-07 19:30:30 +0200347|
348| Whether to destroy session data associated with the old session ID
349| when auto-regenerating the session ID. When set to FALSE, the data
350| will be later deleted by the garbage collector.
351|
Andrey Andreevdfb39be2014-10-06 01:50:14 +0300352| Other session cookie settings are shared with the rest of the application,
Andrey Andreev973a6542015-01-19 13:25:24 +0200353| except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
Derek Allard2067d1a2008-11-13 22:59:24 +0000354|
355*/
Andrey Andreevdfb39be2014-10-06 01:50:14 +0300356$config['sess_driver'] = 'files';
357$config['sess_cookie_name'] = 'ci_session';
358$config['sess_expiration'] = 7200;
359$config['sess_save_path'] = NULL;
360$config['sess_match_ip'] = FALSE;
361$config['sess_time_to_update'] = 300;
Andrey Andreev789b1fe2015-02-07 19:30:30 +0200362$config['sess_regenerate_destroy'] = FALSE;
Derek Allard2067d1a2008-11-13 22:59:24 +0000363
364/*
365|--------------------------------------------------------------------------
366| Cookie Related Variables
367|--------------------------------------------------------------------------
368|
Andrey Andreev973a6542015-01-19 13:25:24 +0200369| 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions
370| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
371| 'cookie_path' = Typically will be a forward slash
372| 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists.
Iban Eguia83105952012-03-27 18:18:15 +0200373| 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
Derek Allard2067d1a2008-11-13 22:59:24 +0000374|
Andrey Andreev973a6542015-01-19 13:25:24 +0200375| Note: These settings (with the exception of 'cookie_prefix' and
376| 'cookie_httponly') will also affect sessions.
377|
Derek Allard2067d1a2008-11-13 22:59:24 +0000378*/
Dumk0d55f7492012-07-03 11:21:45 +0300379$config['cookie_prefix'] = '';
380$config['cookie_domain'] = '';
381$config['cookie_path'] = '/';
Robin Sowelld6d9f452011-02-11 15:31:27 -0500382$config['cookie_secure'] = FALSE;
freewil4ad0fd82012-03-13 22:37:42 -0400383$config['cookie_httponly'] = FALSE;
Derek Allard2067d1a2008-11-13 22:59:24 +0000384
385/*
386|--------------------------------------------------------------------------
Andrey Andreevbfb635b2014-01-08 18:32:05 +0200387| Standardize newlines
388|--------------------------------------------------------------------------
389|
390| Determines whether to standardize newline characters in input data,
Calvin Tamd2d21e82015-07-04 12:54:51 -0700391| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
Andrey Andreevbfb635b2014-01-08 18:32:05 +0200392|
393| This is particularly useful for portability between UNIX-based OSes,
394| (usually \n) and Windows (\r\n).
395|
396*/
Andrey Andreevaeed15e2014-04-14 16:56:23 +0300397$config['standardize_newlines'] = FALSE;
Andrey Andreevbfb635b2014-01-08 18:32:05 +0200398
399/*
400|--------------------------------------------------------------------------
Derek Allard2067d1a2008-11-13 22:59:24 +0000401| Global XSS Filtering
402|--------------------------------------------------------------------------
403|
404| Determines whether the XSS filter is always active when GET, POST or
405| COOKIE data is encountered
406|
Andrey Andreev9187ed32015-02-28 19:54:17 +0200407| WARNING: This feature is DEPRECATED and currently available only
408| for backwards compatibility purposes!
409|
Derek Allard2067d1a2008-11-13 22:59:24 +0000410*/
411$config['global_xss_filtering'] = FALSE;
412
413/*
414|--------------------------------------------------------------------------
Shane Pearson49ced912010-10-06 17:31:40 -0500415| Cross Site Request Forgery
Derek Allard958543a2010-07-22 14:10:26 -0400416|--------------------------------------------------------------------------
Shane Pearson49ced912010-10-06 17:31:40 -0500417| Enables a CSRF cookie token to be set. When set to TRUE, token will be
Derek Allard958543a2010-07-22 14:10:26 -0400418| checked on a submitted form. If you are accepting user data, it is strongly
419| recommended CSRF protection be enabled.
Eric Barnes9805ecc2011-01-16 23:35:16 -0500420|
421| 'csrf_token_name' = The token name
422| 'csrf_cookie_name' = The cookie name
423| 'csrf_expire' = The number in seconds the token should expire.
RS714b2e9fe2011-12-31 16:02:50 -0200424| 'csrf_regenerate' = Regenerate token on every submission
Alex Bilbieaeb2c3e2011-08-21 16:14:54 +0100425| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
Derek Allard958543a2010-07-22 14:10:26 -0400426*/
427$config['csrf_protection'] = FALSE;
Eric Barnes9805ecc2011-01-16 23:35:16 -0500428$config['csrf_token_name'] = 'csrf_test_name';
429$config['csrf_cookie_name'] = 'csrf_cookie_name';
430$config['csrf_expire'] = 7200;
RS714b2e9fe2011-12-31 16:02:50 -0200431$config['csrf_regenerate'] = TRUE;
Alex Bilbieaeb2c3e2011-08-21 16:14:54 +0100432$config['csrf_exclude_uris'] = array();
Derek Allard958543a2010-07-22 14:10:26 -0400433
434/*
435|--------------------------------------------------------------------------
Derek Allard2067d1a2008-11-13 22:59:24 +0000436| Output Compression
437|--------------------------------------------------------------------------
438|
Derek Jones4b9c6292011-07-01 17:40:48 -0500439| Enables Gzip output compression for faster page loads. When enabled,
Derek Allard2067d1a2008-11-13 22:59:24 +0000440| the output class will test whether your server supports Gzip.
441| Even if it does, however, not all browsers support compression
442| so enable only if you are reasonably sure your visitors can handle it.
443|
Andrey Andreev155ee722014-01-10 15:50:54 +0200444| Only used if zlib.output_compression is turned off in your php.ini.
445| Please do not use it together with httpd-level output compression.
446|
Derek Jones4b9c6292011-07-01 17:40:48 -0500447| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
Derek Allard2067d1a2008-11-13 22:59:24 +0000448| means you are prematurely outputting something to your browser. It could
Derek Jones4b9c6292011-07-01 17:40:48 -0500449| even be a line of whitespace at the end of one of your scripts. For
Derek Allard2067d1a2008-11-13 22:59:24 +0000450| compression to work, nothing can be sent before the output buffer is called
Derek Jones4b9c6292011-07-01 17:40:48 -0500451| by the output class. Do not 'echo' any values with compression enabled.
Derek Allard2067d1a2008-11-13 22:59:24 +0000452|
453*/
454$config['compress_output'] = FALSE;
455
456/*
457|--------------------------------------------------------------------------
458| Master Time Reference
459|--------------------------------------------------------------------------
460|
Andrey Andreevd163e0b2012-06-14 03:09:53 +0300461| Options are 'local' or any PHP supported timezone. This preference tells
462| the system whether to use your server's local time as the master 'now'
463| reference, or convert it to the configured one timezone. See the 'date
Iban Eguia74009652012-06-13 22:57:50 +0200464| helper' page of the user guide for information regarding date handling.
Derek Allard2067d1a2008-11-13 22:59:24 +0000465|
466*/
467$config['time_reference'] = 'local';
468
Derek Allard2067d1a2008-11-13 22:59:24 +0000469/*
470|--------------------------------------------------------------------------
471| Rewrite PHP Short Tags
472|--------------------------------------------------------------------------
473|
474| If your PHP installation does not have short tag support enabled CI
475| can rewrite the tags on-the-fly, enabling you to utilize that syntax
Derek Jones4b9c6292011-07-01 17:40:48 -0500476| in your view files. Options are TRUE or FALSE (boolean)
Derek Allard2067d1a2008-11-13 22:59:24 +0000477|
478*/
479$config['rewrite_short_tags'] = FALSE;
480
481
Derek Jonesc5972282009-02-04 21:40:20 +0000482/*
483|--------------------------------------------------------------------------
484| Reverse Proxy IPs
485|--------------------------------------------------------------------------
486|
Andrey Andreev9ac557f2012-10-06 20:27:57 +0300487| If your server is behind a reverse proxy, you must whitelist the proxy
488| IP addresses from which CodeIgniter should trust headers such as
489| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
490| the visitor's IP address.
Derek Jonesc5972282009-02-04 21:40:20 +0000491|
Andrey Andreev9ac557f2012-10-06 20:27:57 +0300492| You can use both an array or a comma-separated list of proxy addresses,
493| as well as specifying whole subnets. Here are a few examples:
494|
495| Comma-separated: '10.0.1.200,192.168.5.0/24'
496| Array: array('10.0.1.200', '192.168.5.0/24')
Derek Jonesc5972282009-02-04 21:40:20 +0000497*/
498$config['proxy_ips'] = '';