Skip to content
Browse files

Added config for proxy forwarding.

  • Loading branch information...
1 parent d2de9d5 commit 09cf2524ed958a0391f19861eb45e1705979c282 @philsturgeon philsturgeon committed Aug 1, 2011
View
0 addons/index.html 100644 → 100755
File mode changed.
View
16 installer/assets/config/config.php
@@ -317,6 +317,20 @@
/*
|--------------------------------------------------------------------------
+| 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'
+|
+*/
+$config['proxy_ips'] = '';
+
+
+/*
+|--------------------------------------------------------------------------
| Module Locations
|--------------------------------------------------------------------------
|
@@ -327,4 +341,4 @@
APPPATH.'modules/' => '../modules/',
ADDON_FOLDER.'default/modules/' => '../../../addons/default/modules/',
SHARED_ADDONPATH.'modules/' => '../../../addons/shared_addons/modules/'
-);
+);
View
0 system/cms/cache/.htaccess 100644 → 100755
File mode changed.
View
0 system/cms/cache/index.html 100644 → 100755
File mode changed.
View
16 system/cms/config/config.php
@@ -317,6 +317,20 @@
/*
|--------------------------------------------------------------------------
+| 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'
+|
+*/
+$config['proxy_ips'] = '';
+
+
+/*
+|--------------------------------------------------------------------------
| Module Locations
|--------------------------------------------------------------------------
|
@@ -327,4 +341,4 @@
APPPATH.'modules/' => '../modules/',
ADDON_FOLDER.'default/modules/' => '../../../addons/default/modules/',
SHARED_ADDONPATH.'modules/' => '../../../addons/shared_addons/modules/'
-);
+);

0 comments on commit 09cf252

Please sign in to comment.
Something went wrong with that request. Please try again.