https://bugzilla.wikimedia.org/show_bug.cgi?id=40679
--- Comment #13 from MZMcBride <[email protected]> 2012-10-02 05:58:15 UTC --- (In reply to comment #10) > (In reply to comment #7) >> There is no need to have two variables. > > Except if you want to have different URLs for HTTP and HTTPS, I think that was > MZ was after. That's one use-case, yes. I think secure.example.com is still fairly common, but I'm personally not too concerned with this. My general feeling is that whenever $wgServer is mentioned (in discussions or in code), it's always a guessing game with its value is. HTTP, HTTPS, protocol-relative? And this guessing game has a cost. An alternative approach is to be explicit in the variable name itself, so that there's less ambiguity. And there seems to be more and more of a reliance (in code) on the principle that http/https will be equivalent, but again, I'm not too concerned with this. > As you might have guessed, $wgCanonicalServer is currently set to > "http:$wgServer" on WMF wikis. I deliberately designed it so it could be > switched to https later, that's why it's separate from $wgInternalServer (used > for Squid purges, will still need to be http). Thank you for explaining this. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
