How to use Apache 2 with HTTPS only?

Matthew Miller mattdm at mattdm.org
Sun Jul 30 11:51:43 UTC 2006


On Sun, Jul 30, 2006 at 07:45:58AM -0300, Vinicius wrote:
> How to use Apache 2 with HTTPS only, please?
> A snippet of my ssl.conf:
> <VirtualHost _default_:443>
> SSLEngine on
> SSLOptions +StrictRequire
> <Directory />
>     SSLRequireSSL
> </Directory>
> </VirtualHost>

In the configuration for your port 80 host, put:

Redirect permanent / https://yoursecuresite.example.org

That way, anyone accessing the non-secure site is transparently redirected
to being secure. If you don't do this, people who forget the 's' won't be
able to find your site.



> -- 
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

-- 
Matthew Miller           mattdm at mattdm.org          <http://mattdm.org/>
Boston University Linux      ------>              <http://linux.bu.edu/>




More information about the fedora-list mailing list