Handbuch:$wgCdnServersNoPurge
Einstellungen für den HTTP-Proxy (CDN): $wgCdnServersNoPurge | |
---|---|
Same as $wgCdnServers , except no HTTP purges will be sent and CIDR ranges are accepted |
|
Eingeführt in Version: | 1.34.0 (Gerrit change 387877; git #f9f8dff4) |
Entfernt in Version: | Weiterhin vorhanden |
Erlaubte Werte: | (IPv4 & IPv6 addresses and/or Classless Inter-Domain Routing (CIDR) blocks) |
Standardwert: | [] |
Andere Einstellungen: Alphabetisch | Nach Funktion |
Details
This variable is about telling MediaWiki an array of CIDR
blocks or individual IP addresses where any IP address that is part of the range has to be considered as a Proxy server.
This means that X-Forward-For
headers will be respected for requests from IP addresses or ranges on this list.
Same as $wgCdnServers
, except that MW does not send PURGE requests to clear cache.
You can use this setting for proxy servers that do not cache content or are purged by a different means such as Purged.
All documentation in Manual:$wgCdnServers#Configuration example with Varnish is valid, but with difference described below.
// In LocalSettings.php
$wgUseCdn = true;
$wgCdnServersNoPurge = [];
$wgCdnServersNoPurge[] = "192.0.2.0/24";