Manual:$wgWikiFarmSettingsDirectory/ru

From mediawiki.org
This page is a translated version of the page Manual:$wgWikiFarmSettingsDirectory and the translation is 40% complete.
Outdated translations are marked like this.
Wiki farm: $wgWikiFarmSettingsDirectory
Каталог, содержащий файлы конфигурации для конкретного сайта.
Введено в версии:1.38.0 (Gerrit change 776195; git #84cb4ae0)
Удалено в версии:всё ещё используется
Допустимые значения:A directory that is readable by PHP but not accessible from the browser
Значение по умолчанию:null
Внимание Внимание: EXPERIMENTAL!

Подробности

Каталог, содержащий файлы конфигурации для конкретного сайта. Установка этого параметра позволит включить многопользовательский режим ("вики-ферма"), в результате чего будут загружены настройки, относящиеся к конкретному сайту, на основе информации из веб-запроса.

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