I've tried this example from OpenBSD http://www.openbsd.org/faq/faq10.html#HTTPS
it works fine, but with Mozilla Firefox 6.0 it's possible to use both http and https, while I want to force users to use only HTTPS. How can I achieve this?
Thanks!
|
I've tried this example from OpenBSD http://www.openbsd.org/faq/faq10.html#HTTPS it works fine, but with Mozilla Firefox 6.0 it's possible to use both http and https, while I want to force users to use only HTTPS. How can I achieve this? Thanks! | ||||
feedback
|
|
You control that in what ever web server you use. You're going to want to 301 redirect to your HTTPS site. | |||
|
feedback
|
|
You can restrict connections to your website to require HTTPS, by using the mod_ssl directive This directive forbids access unless HTTP over SSL (that is HTTPS) is enabled for the current connection. It is very handy inside the SSL-enabled virtual host or directories as a defense against configuration errors that expose data that should be protected. When this directive is present, all requests that do not use SSL are denied. The FAQ entry you referenced discusses setting up your website to support SSL, the directive SSLRequireSSL is what you would use to specify restrictions per the whole site (or the specific Alias/Directories within your site.) | |||
|
feedback
|
|
You can redirect This exposes the user to attacks, unless he carefully checks every time that the domain is really https://example.com, not http://example.com/, not https://example.com, not https://(insert non-Latin homoglyphs here).com... In this case, you really want to use HTTP Strict Transport Security:
| |||
|
feedback
|