Manual:$wgSquidServers

From MediaWiki.org
Jump to: navigation, search
Squid: $wgSquidServers
A list of proxy servers (IPs if possible) to purge on changes.
Introduced in version: 1.2.0
Removed in version: still in use
Allowed values:
Default value: array()
Prior to 1.4.0 no default value was set.

Other settings: Alphabetical | By Function


Details[edit | edit source]

A list of proxy servers (IPs if possible) to purge on changes. Don't specify ports here (80 is default). eg:

$wgSquidServers = array( '127.0.0.1' );

Any IPs listed in this array will be treated as trusted surrogates (reverse proxies). IP addresses displayed for users connected via these Squid servers therefore will match individual user IP's, not the Squid's IP.

Note: In versions prior to 1.4.0 this setting was not defined in DefaultSettings.php (although its usage was commented there). This may have been because it wasn't implemented properly or may simply have been an oversight.


Although this variable has the word Squid in it, it can also be used with other caching proxies, like Varnish.

See also[edit | edit source]