Manual:$wgWikiFarmSettingsDirectory/cs
Wiki farm: $wgWikiFarmSettingsDirectory | |
---|---|
Adresář, který obsahuje konfigurační soubory specifické pro daný web. |
|
Introduced in version: | 1.38.0 (Gerrit change 776195; git #84cb4ae0) |
Removed in version: | Still in use |
Allowed values: | A directory that is readable by PHP but not accessible from the browser |
Default value: | null |
Other settings: Alphabetical | By function |
Podrobnosti
[edit]Adresář, který obsahuje soubory nastavení specifické pro web. Toto nastavení povolí režim pro více nájemců ("Wiki rodina"), což způsobí načtení nastavení specifických pro web na základě informací z webového požadavku.
Proměnná prostředí MW_WIKI_NAME
bude použita k určení, která nastavení wiki by měla být načtena pro aktuální požadavek. Proměnná prostředí by měla být nastavena webovým serverem na základě požadované domény nebo cesty, která identifikuje wiki.
The settings file is expected to be located in the directory specified by the $wgWikiFarmSettingsDirectory
setting and use the file extension specified by $wgWikiFarmSettingsExtension
, which may be "yaml"
or "json"
. The file must use the YAML settings file format. Settings loaded from this file will be combined with settings found in LocalSettings.php.
Example
[edit]Assume there are three wikis with the IDs apples
, bananas
, and cherries
. If $wgWikiFarmSettingsDirectory
is set to '/var/opt/mw/farmsettings'
, then the following YAML files should exist for each wiki in the /var/opt/mw/farmsettings
directory:
apples.yaml
bananas.yaml
cherries.yaml