Thread:Project:Support desk/Secure (https) configuration?/reply

First of all, make sure your webserver can respond to https requests.

You need to set $wgServer to be a protocol relative url. So in wikipedia's case it would look something like //en.wikipedia.org (note the starting with two //'s instead of http: or https:).

Additionally you should probably set $wgCanonicalServer.

(Note, if your secure server comes from a different server name then your non-secure server (like how secure.wikimedia.org vs en.wikipedia.org used to work. You have to split the parser cache instead using $wgRenderHashAppend, however this method is hacky, inefficient, and users like it better when https has same server name)