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.

Jeremy Davis's picture

You are correct! Thanks for posting.

Dov Grobgeld's picture

Thanks for the description! However, you also need the add the following line to the `VirtualHost *:80>` section:
DocumentRoot /var/www/mediawiki/
Jeremy Davis's picture

Well spotted and thanks for posting with the correction/extra info.

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