Todd Forsberg's picture

We are using MediaWiki on an internal, private network and don't need SSL.  How can I disable it?

Jeremy Davis's picture

Assuming that you are referring to the latest v15.2 appliance, then there are 2 required adjustments:

The first is to remove the http -> https redirect in the Apache config. To do that, remove the rewrite rules from the port 80 section of the Apache config file (/etc/apache2/sites-available/mediawiki.conf). The lines that you'll want to remove are these 3 (lines 6, 7 & 8 currently).

The other thing that you'll need to do is to adjust the Mediawiki config file (/var/www/mediawiki/LocalSettings.php). Find the line that starts with $wgServer and change that to point to http (rather than https).

Then to apply the updated config, restart Apache:

service apache2 restart

Hopefully that gets you going and all is well. Let me know if not.

Austin S.'s picture

I followed your instructions, but I found that I also had to add a line where the 3 lines were deleted:
DocumentRoot /var/www/mediawiki/
Otherwise, the wiki was not accessible via http.
Jeremy Davis's picture

You are correct! Thanks for posting.

Todd Forsberg's picture

I did the second one already.  I will do the first part now.

I appreciate your help!!!

For the third part, rebooting the vm should do the same, correct?


-Todd Forsberg

Jeremy Davis's picture

So long as Apache is restarted you should be good, so rebooting is another way to achieve that ends (although restarting Apache is quicker).

Hopefully you should be good to go once all that's done.

Add new comment