Handbuch:$wgCanonicalServer

This page is a translated version of the page Manual:$wgCanonicalServer and the translation is 70% complete.
Server-URLs und Dateipfade: $wgCanonicalServer
Canonical URL of the server, to use in IRC feeds, notification emails, etc.
Eingeführt in Version:1.18.0 (r94995)
Entfernt in Version:weiterhin vorhanden
Erlaubte Werte:(URL-Zeichenfolge)
Standardwert:$wgServer ; wenn $wgServer ohne Protokoll (http oder https) angegeben wurde, wird http benutzt.

Details

Servename mit Protokoll (HTTP oder HTTPS). Wird benutzt für Links zum Wiki von extern, wie z.B. IRC und E-Mail-Benachrichtigungen. Muss vollständig qualifiziert sein, selbst wenn $wgServer Protokollrelativ ist.

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

Beispiel

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

Siehe auch