diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-10-06 19:27:57 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-10-06 19:27:57 +0200 |
commit | 9ac557f2473844f3c2207189f371f827dbaddb71 (patch) | |
tree | e2d7c624aed65a6316c1140bc66f1f7e743ff2a2 /application/config | |
parent | dc9bfb7ffbbd53fa4ad0c22c8c42300dd882ecca (diff) |
Add IPv6 and array() support for *proxy_ips* configuration
Diffstat (limited to 'application/config')
-rw-r--r-- | application/config/config.php | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/application/config/config.php b/application/config/config.php index eaccbf75e..ab1508e7b 100644 --- a/application/config/config.php +++ b/application/config/config.php @@ -406,15 +406,19 @@ $config['rewrite_short_tags'] = FALSE; | Reverse Proxy IPs |-------------------------------------------------------------------------- | -| If your server is behind a reverse proxy, you must whitelist the proxy IP -| addresses from which CodeIgniter should trust the HTTP_X_FORWARDED_FOR -| header in order to properly identify the visitor's IP address. -| Comma-delimited, e.g. '10.0.1.200,10.0.1.201' +| If your server is behind a reverse proxy, you must whitelist the proxy +| IP addresses from which CodeIgniter should trust headers such as +| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify +| the visitor's IP address. | +| You can use both an array or a comma-separated list of proxy addresses, +| as well as specifying whole subnets. Here are a few examples: +| +| Comma-separated: '10.0.1.200,192.168.5.0/24' +| Array: array('10.0.1.200', '192.168.5.0/24') */ $config['proxy_ips'] = ''; - /* End of file config.php */ -/* Location: ./application/config/config.php */ +/* Location: ./application/config/config.php */
\ No newline at end of file |