Page MenuHomePhabricator

Installer hardcodes a protocol to $wgServer
Closed, DeclinedPublic

Description

When installing a wiki the installer always hardcodes the protocol to $wgServer e.g.

$wgServer = "http://www.example.org";

Since MW 1.18+ allows for protocol relative settings to $wgServer the installer should probably always better add

$wgServer = "//www.example.org";

for the default install. Probably this bug is building on bug 44260. This setting tends to be painful if it is hardcoded with an explicit protocol so ...


Version: 1.22.7
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=44260

Details

Reference
bz66481

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:19 AM
bzimport set Reference to bz66481.
bzimport added a subscriber: Unknown Object (MLST).

Hmm ..., I played a bit with this parameter. It turns out that it is useless if

$wgServer = "//www.example.org";

is set and either http or https is not configured for the URL. So if one only configured http one will imperatively have to set

$wgServer = "http://www.example.org";

or in the case of https

$wgServer = "https://www.example.org";

Only if both http and https is configured it makes sense to set this parameter to be protocol relative and additionally set $wgCanonicalServer to either on of them.

I guess I have no case here. Thus closing this as RESOLVED WONTFIX.