Manual:$wgLocalVirtualHosts

From Linux Web Expert

Revision as of 17:45, 19 September 2023 by imported>Shirayuki (make untranslatable)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<translate> HTTP client</translate>: $wgLocalVirtualHosts
Local virtual hosts.
<translate> Introduced in version:</translate>1.25.0 (Gerrit change 157712; git #3114dbea)
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(array)
<translate> Default value:</translate>[]

Details

This lists domains that are configured as virtual hosts on the same machine. It is expected that each domain can be identified by its hostname alone, without any ports.

This affects the following:

  • MWHttpRequest - If a request is to be made to a domain listed here, or any subdomain thereof, then $wgLocalHTTPProxy will be used as a proxy (instead of $wgHTTPProxy ). Command-line scripts are not affected by this setting and will always use the proxy if it is configured.