매뉴얼:$wgCanonicalServer

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgCanonicalServer and the translation is 40% complete.

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎中文 • ‎日本語 • ‎한국어
General Settings: $wgCanonicalServer
Canonical URL of the server, to use in IRC feeds, notification e-mails, etc.
이 변수가 소개된 버전:1.18.0 (r94995)
이 변수가 사라진 버전:계속해서 쓰이고 있음
허용값:(URL string)
기본값:$wgServer ; if $wgServer is protocol-relative, the HTTP equivalent will be used
기타 설정: 알파벳 순 | 기능별 순

상세

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'

같이 보기