From bd89eda2b245926f24f070a33aa5ff6d2e193b6a Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sun, 13 May 2007 12:44:38 +0000 Subject: [PATCH] #9896 Documentation for wgSquidServers. Patch by Loic Dachary. --- RELEASE-NOTES | 1 + includes/DefaultSettings.php | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index d6f987fe70..e80ca3707c 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -52,6 +52,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 7070) monobook/user.gif has antialias artifacts * (bug 9877) Fix Catalan translation of rev-deleted-text-view * (bug 9123) Safer way when applying $wgLocalTZoffset +* (bug 9896) Documentation for $wgSquidServers and X-FORWARDED-FOR == Maintenance script changes since 1.10 == diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index dce78a802a..5f4bacf3d3 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1245,7 +1245,11 @@ $wgSquidMaxage = 18000; /** * A list of proxy servers (ips if possible) to purge on changes don't specify - * ports here (80 is default) + * ports here (80 is default). When mediawiki is running behind a proxy, its + * address should be listed in $wgSquidServers otherwise mediawiki won't rely + * on the X-FORWARDED-FOR header to determine the user IP address and + * all users will appear to come from the proxy IP address. Don't use domain + * names here, only IP adresses. */ # $wgSquidServers = array('127.0.0.1'); $wgSquidServers = array(); -- 2.20.1