Jump to content

Manual:$wgCdnServersNoPurge

From mediawiki.org
This page is a translated version of the page Manual:$wgCdnServersNoPurge and the translation is 40% complete.
HTTP プロキシ (CDN) 設定: $wgCdnServersNoPurge
Same as $wgCdnServers , except no HTTP purges will be sent and CIDR ranges are accepted
導入されたバージョン:1.34.0 (Gerrit change 387877; git #f9f8dff4)
除去されたバージョン:使用中
許容される値:(IPv4 アドレス、IPv6 アドレス、クラスレス ドメイン間 ルーティング (CIDR) ブロック)
既定値:[]

詳細

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.

// LocalSettings.php 内
$wgUseCdn = true;
$wgCdnServersNoPurge = [];
$wgCdnServersNoPurge[] = "192.0.2.0/24";