Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is the best way to always reroute all traffic from http to https on Apache 2?

All requests to 80 should go to 443.

(I am using Ubuntu + Apache 2)

share|improve this question

migrated from Jul 29 '10 at 23:53

This question came from our site for computer enthusiasts and power users.

possible duplicate of Forcing HTTPS from HTTP (Apache) – Mark Henderson Jul 29 '10 at 23:56
up vote 3 down vote accepted

You posted over on ServerFault as well, and it looks like it has been answered. This is simply to add a solution to this question on SuperUser in the event that someone else is looking for an answer to this question.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.