Topic on Project:Support desk

Login or edit action not being served by https

5
203.174.65.44 (talkcontribs)

Hi everyone,

I'm running MediaWiki on Centos 7 with apache 2.4.23 and PHP 5.6.28 (installed from resource code). I also set up self-signed certificate for my mediawiki.

The problem was: For some action like edit or login, they got served by http not https.

For example, if i want to edit my article, i can choose Show preview, Show changes button without any problem.

But after i press the Save Page button, i would get: ERR_CONNECTION_REFUSED

And i noticed that in my address bar, it turned into http.

What's the fix for this?

87.123.33.228 (talkcontribs)

What is the value of $wgServer in LocalSettings.php?

203.174.65.44 (talkcontribs)
87.123.33.228 (talkcontribs)

If you want to run MediaWiki over https, make sure that $wgServer also starts with https!

203.174.65.44 (talkcontribs)

Ah, thank you. It worked like a charm!! :D