Manual:$wgWikiFarmSettingsDirectory

Details
A directory that contains site-specific configuration files. Setting this will enable multi-tenant ("wiki farm") mode, causing site-specific settings to be loaded based on information from the web request.