Manual:$wgServerName

From MediaWiki.org

Jump to: navigation, search
General Settings: $wgServerName
The name of the server without the protocol.
Introduced in version: 1.3.8
Removed in version: still in use
Allowed values: (string)
Default value: (dynamically created)

Other settings: Alphabetical | By Function


Details

The name of the server without the protocol or trailing slash. (eg, "en.wikipedia.org"). See $wgServer for details about how it is calculated.

The syntax to get a website to answer on an IP is:

$wgServerName = "foo.bar.com";
$wgServer = "{$wgProto}://{$wgServerName}";

See Also