Forward all Apache HTTP traffic to HTTPS

This is a good way to force all traffic to your site to use HTTPS while letting people who forget the 's' in HTTPS still get to your site. Pretend it is at /etc/apache2/sites-available/example.com on a Debian system.