Manual:$wgServerName/en

''This variable was formerly available from 1.3.8 and then removed in 1.17.0. It was re-introduced in 1.24.0.''

Details
The name of the server without the protocol or trailing slash. (eg, "en.wikipedia.org"). It is automatically calculated based on.