Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8080049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:18:18+00:00 2026-06-05T16:18:18+00:00

I need a MediaWiki installation to require the use of https (and reject normal

  • 0

I need a MediaWiki installation to require the use of https (and reject normal http). I’ve spent 2 hours looking. Setting $wgServer doesn’t work and closing port 80 in httpd.conf doesn’t work either.

My wiki installation is run on an Apache server.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T16:18:20+00:00Added an answer on June 5, 2026 at 4:18 pm

    My answer assumes that you already have Apache listening for https traffic on port 443. If that’s not the case, you need to set that up first. The procedure will be different depending on what operating system you are running.


    You want to do this in Apache. On my Ubuntu system, there’s a file /etc/apache2/ports.conf which contains the following line:

    Listen 80
    

    You will have a similar config file that contains that line. Delete it, and don’t forget to restart Apache.


    Another way to accomplish this, which allows for more complex Apache configurations where you allow HTTP access to some parts of the site, is to use a .htaccess file in your MediaWiki directory. Try this:

    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to use MediaWiki at work. It used to be okay, but with
I need add a new user group for mediawiki. The new group has more
I need a way to insert new articles straight into my MediaWiki database without
I have an old skin that I need to adapt to the new MediaWiki
Hi i have following Problem. I write a Mediawiki Extension where i need some
I am using mediaWiki's fauxRequest to do internal API calls. But I need an
I am customising MediaWiki for our internal portal. I need to open a popup
Need some advice to use iframe for widget or not. Will some addons/plugin block
I need to convert LaTeX into MediaWiki syntax. The formulas should stay the same,
I need to render wikitext (pulled from the database of a mediawiki of it's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.