Manual:$wgCanonicalServer/zh

Category:MediaWiki configuration settings/zh#CanonicalServerCategory:MediaWiki configuration settings introduced in version 1.18.0/zh#CanonicalServerCategory:MediaWiki configuration settings still in use/zh#CanonicalServerCategory:Path variables/zh#CanonicalServer
服务器URL及路徑: $wgCanonicalServer
Canonical URL of the server, to use in IRC feeds, notification emails, etc.
引进版本:1.18.0 (r94995)
移除版本:仍在使用
允许的值:(URL字符串)
$wgServer ;如果$wgServer是相对协议,HTTP等值将被使用

详情

Server name with protocol (HTTP or HTTPS) to use for links to the wiki from external locations, such as IRC feeds and email notifications. Must be fully qualified, even if $wgServer is protocol-relative.

You can often ignore this variable. However, if you have set $wgServer to a protocol-relative URL (for example, //www.mediawiki.org) and you would like links to your wiki to use HTTPS, set this variable to the equivalent HTTPS URL (for example, https://www.mediawiki.org).

$wgServer = '//example.com';
$wgCanonicalServer = 'https://example.com'; // Use HTTPS for links. Default would be "http://example.com"

参见

Category:MediaWiki configuration settings/zh Category:MediaWiki configuration settings introduced in version 1.18.0/zh Category:MediaWiki configuration settings still in use/zh Category:Path variables/zh