如果启用SSL,Mediawiki无法加载CSS

时间:2016-03-07 09:26:48

标签: ssl mediawiki

mediawiki代码库中有一个http://硬编码,导致这些错误。什么都找不到。

Index:13 Mixed Content: The page at 'https://xy/Index' was loaded over HTTPS, but requested an insecure stylesheet 'http://xy/load.php?debug=false&lang=hu&modules=mediawiki.legacy.co…face%7Cmediawiki.ui.button%7Cskins.vector.styles&only=styles&skin=vector&*'. This request has been blocked; the content must be served over HTTPS.
Index:1 Mixed Content: The page at 'https://xy/Index' was loaded over HTTPS, but requested an insecure script 'http://xy/load.php?debug=false&lang=hu&modules=startup&only=scripts&skin=vector&*'. This request has been blocked; the content must be served over HTTPS.

1 个答案:

答案 0 :(得分:0)

在您的mediawiki文件夹中,有一个名为LocalSettings.php的文件

您需要编辑该文件并将$ wgServer值从http://更改为https://