From: Stefan Eissing Date: Wed, 18 Oct 2017 14:11:37 +0000 (+0000) Subject: mod_md: some strong advice about the consequences of permanent MDRequireHttps in... X-Git-Tag: 2.5.0-alpha~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=36a88c9ede6bfaf95f621630c2689cb131a0887c;p=apache mod_md: some strong advice about the consequences of permanent MDRequireHttps in the manual git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1812517 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_md.xml b/docs/manual/mod/mod_md.xml index 05b973a1f9..17c5708bde 100644 --- a/docs/manual/mod/mod_md.xml +++ b/docs/manual/mod/mod_md.xml @@ -494,15 +494,35 @@ MDRequireHttps temporary

you announce that you want all traffic via http: URLs to be redirected - to the https: ones, for now. If you want client to no longer use the + to the https: ones, for now. This is safe and you can remove this again at + any time. +

+ The following has consequences: if you want client to no longer use the http: URLs, configure:

- Example + Permanent (for at least half a year!) MDRequireHttps permanent -

You can achieve the same with mod_alias and some Redirect configuration, +

This does two things: +

+
    +
  1. All request to the http: resources are redirected to the + same url with the https: scheme using the 301 + status code. This tells clients that this is intended to be forever and + the should update any links they have accodingly. +
  2. +
  3. All answers to https: requests will carry the header + Strict-Transport-Security with a life time of half a year. + This tells the browser that it never (for half a year) shall use http: + when talking to this domain name. Browsers will, after having seen this, refuse + to contact your unencrypted site. This prevents malicious middleware to + downgrade connections and listen/manipulate the traffic. Which is good. But + you cannot simply take it back again. +
  4. +
+

You can achieve the same with mod_alias and some Redirect configuration, basically. If you do it yourself, please make sure to exclude the paths /.well-known/* from your redirection, otherwise mod_md might have trouble signing on new certificates. @@ -513,21 +533,10 @@ MDRequireHttps permanent Example <ManagedDomain xxx.yyy> - MDRequireHttps permanent + MDRequireHttps temporary </ManagedDomain> -

When you configure MDRequireHttps permanent, an additional security - feature is automatically applied: HSTS. This adds the header - Strict-Transport-Security to responses sent out via https:. - Basically, this instructs the browser to only perform secure - communications with that domain. This instruction holds for the - amount of time specified in the header as 'max-age'. - This is about half a year as generated by mod_md. -

- It is therefore advisable to first test the MDRequireHttps temporary - configuration and switch to permanent only once that works satisfactory. -