Manual:$wgSquidServers/pt-br

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

Detalhes
This variable is about telling MediaWiki what are the individual IP adresses of each Proxy servers that serves content to your visitors.

Note that if you have CIDR ranges (e.g. ), make sure you set them in  instead.

The setting can be used in many Proxy setups, both within a private network or through an external provider, and also with external services that are based on either Varnish or Squid.

Exemplo de configuração com o Varnish
Considere os seguintes detalhes de configuração:


 * one and/or more web servers ("origins") with MediaWiki running
 * Varnish configuration points to your MediaWiki origins
 * You have a few Varnish servers that proxies requests for the web servers
 * You have a list of single IP addresses (not CIDR ranges, that would go in instead!)

Here are the configurations you have to set in place:


 * In Varnish, set a  HTTP header with , example:
 * Create an array of servers. Ideally it should be IP in decimal format but those would work

The following IP are for example purpose, defined in from RFC 5737.

TODO: Insert example of a valid IPv6 address that is part of  range as per RFC3849

Notas de uso e histórico

 * Specifying the port number of your proxy software is not necessary. But you may do that for MediaWiki 1.16 and higher. This will be useful when you don't run your proxy software at port 80 (used by default).
 * Any IPs listed in this array will be treated as trusted surrogates (reverse proxies)
 * IP addresses displayed for users connected via these Squid/Varnish servers therefore will match individual user IP's, not the Squid's IP.

''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.''

Formato

 * Each entry can be either IPv6/IPv4 addresses in octal format (e.g. )
 * CIDR notation and ranges should be configured in

Anything described in includes/utils/IP.php should be valid.

Ver também

 * (equivalent setting, for CIDR ranges)