Manual:$wgWikiFarmSettingsDirectory/ru
Wiki farm: $wgWikiFarmSettingsDirectory | |
---|---|
Каталог, содержащий файлы конфигурации для конкретного сайта. |
|
<translate> Introduced in version:</translate> | 1.38.0 (Gerrit change 776195; git #84cb4ae0) |
<translate> Removed in version:</translate> | <translate> still in use</translate> |
<translate> Allowed values:</translate> | A directory that is readable by PHP but not accessible from the browser |
<translate> Default value:</translate> | null |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
Подробности
Каталог, содержащий файлы конфигурации для конкретного сайта. Установка этого параметра позволит включить многопользовательский режим ("вики-ферма"), в результате чего будут загружены настройки, относящиеся к конкретному сайту, на основе информации из веб-запроса.
The MW_WIKI_NAME
environment variable will be used to determine which wiki's settings should be loaed for the current request. The environment variable should be set by the web server based on the requested domain or path that identifies the 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
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