diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-11-26 08:06:52 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-11-26 08:06:52 +0000 |
commit | f337abfa697395f2b39ac7d542e66da5538fa3f4 (patch) | |
tree | f9fb1a1dce5164a4454467db500ec7c47ab7b4a5 /sites/default/default.settings.php | |
parent | 6dd28cafed3bb7efe736aff1c7a273621e632b64 (diff) | |
download | brdo-f337abfa697395f2b39ac7d542e66da5538fa3f4.tar.gz brdo-f337abfa697395f2b39ac7d542e66da5538fa3f4.tar.bz2 |
#173408 by markus_petrux / add1sun: move proxy IP configuration options to settings.php, because these need to be used before Drupal has the variables loaded from the database
Diffstat (limited to 'sites/default/default.settings.php')
-rw-r--r-- | sites/default/default.settings.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sites/default/default.settings.php b/sites/default/default.settings.php index 6cc0aa4cc..4fc53c365 100644 --- a/sites/default/default.settings.php +++ b/sites/default/default.settings.php @@ -172,6 +172,34 @@ ini_set('url_rewriter.tags', ''); # 'site_name' => 'My Drupal site', # 'theme_default' => 'minnelli', # 'anonymous' => 'Visitor', +/** + * reverse_proxy accepts a boolean value. + * + * Enable this setting to determine the correct IP address of the remote + * client by examining information stored in the X-Forwarded-For headers. + * X-Forwarded-For headers are a standard mechanism for identifying client + * systems connecting through a reverse proxy server, such as Squid or + * Pound. Reverse proxy servers are often used to enhance the performance + * of heavily visited sites and may also provide other site caching, + * security or encryption benefits. If this Drupal installation operates + * behind a reverse proxy, this setting should be enabled so that correct + * IP address information is captured in Drupal's session management, + * logging, statistics and access management systems; if you are unsure + * about this setting, do not have a reverse proxy, or Drupal operates in + * a shared hosting environment, this setting should be set to disabled. + */ +# 'reverse_proxy' => TRUE, +/** + * reverse_proxy accepts an array of IP addresses. + * + * Each element of this array is the IP address of any of your reverse + * proxies. Filling this array Drupal will trust the information stored + * in the X-Forwarded-For headers only if Remote IP address is one of + * these, that is the request reaches the web server from one of your + * reverse proxies. Otherwise, the client could directly connect to + * your web server spoofing the X-Forwarded-For headers. + */ +# 'reverse_proxy_addresses' => array('a.b.c.d', ...), # ); /** |