diff --git a/changes-entries/alias-preserve-path.txt b/changes-entries/alias-preserve-path.txt new file mode 100644 index 00000000000..30eb4df3816 --- /dev/null +++ b/changes-entries/alias-preserve-path.txt @@ -0,0 +1,3 @@ + *) mod_alias: Add AliasPreservePath directive to map the full + path after the alias in a location. [Graham Leggett] + diff --git a/changes-entries/md_v2.4.23.txt b/changes-entries/md_v2.4.23.txt new file mode 100644 index 00000000000..736e0c5c684 --- /dev/null +++ b/changes-entries/md_v2.4.23.txt @@ -0,0 +1,14 @@ + * mod_md: + - New directive `MDMatchNames all|servernames` to allow more control over how + MDomains are matched to VirtualHosts. + - New directive `MDChallengeDns01Version`. Setting this to `2` will provide + the command also with the challenge value on `teardown` invocation. In version + 1, the default, only the `setup` invocation gets this parameter. + Refs #312. Thanks to @domrim for the idea. + - For Managed Domain in "manual" mode, the checks if all used ServerName and + ServerAlias are part of the MDomain now reports a warning instead of an error + (AH10040) when not all names are present. + - MDChallengeDns01 can now be configured for individual domains. + Using PR from Jérôme Billiras (@bilhackmac) and adding test case and fixing proper working + - Fixed a bug found by Jérôme Billiras (@bilhackmac) that caused the challenge + teardown not being invoked as it should. diff --git a/docs/log-message-tags/next-number b/docs/log-message-tags/next-number index ab2acdaf2df..6cea8e27cd7 100644 --- a/docs/log-message-tags/next-number +++ b/docs/log-message-tags/next-number @@ -1 +1 @@ -10473 +10474 diff --git a/docs/manual/mod/mod_alias.xml b/docs/manual/mod/mod_alias.xml index 3ca3a7f0495..463c1eddf8c 100644 --- a/docs/manual/mod/mod_alias.xml +++ b/docs/manual/mod/mod_alias.xml @@ -194,6 +194,24 @@ Alias "/image" "/ftp/pub/image" </LocationMatch> +

Note that when the AliasPreservePath + directive is on, the full path is mapped to the destination. When + the directive is off, all URLs are mapped to the single target + URL.

+ + +# /files/foo and /files/bar mapped to /ftp/pub/files/foo and /ftp/pub/files/bar +<Location "/files"> + AliasPreservePath on + Alias "/ftp/pub/files" +</Location> +# /errors/foo and /errors/bar mapped to /var/www/errors.html +<Location "/errors"> + AliasPreservePath off + Alias "/var/www/errors.html" +</Location> + + @@ -641,5 +659,30 @@ ScriptAliasMatch "(?i)^/cgi-bin(.*)" "/usr/local/apache/cgi-bin$1" + +AliasPreservePath +Map the full path after the alias in a location. +AliasPreservePath OFF|ON +AliasPreservePath OFF +server configvirtual host +directory + +2.5.1 and later + + +

When using the two parameter version of the + Alias directive, the full path after the alias + is preserved. When using the one parameter version of the + Alias directive inside a + Location directive, the full path is dropped, + and all URLs are mapped to the target expression.

+ +

To make the one parameter version of the + Alias directive preserve paths in the same way + that the two parameter version of the Alias + directive, enable this setting.

+ +
+
diff --git a/docs/manual/mod/mod_md.xml b/docs/manual/mod/mod_md.xml index 454cb7fff4e..3a6014bcf11 100644 --- a/docs/manual/mod/mod_md.xml +++ b/docs/manual/mod/mod_md.xml @@ -1033,7 +1033,9 @@ MDRequireHttps permanent

Define a program to be called when the `dns-01` challenge needs to be setup/torn down. The program is given the argument `setup` or `teardown` followed by the domain name. - For `setup` the challenge content is additionally given. + For `setup` the challenge content is additionally given. When + MDChallengeDns01Version is set to 2, + the `teardown` also gets the challenge content as argument.

You do not need to specify this, as long as a 'http:' or 'https:' challenge method is possible. However, Let's Encrypt makes 'dns-01' the only @@ -1462,4 +1464,52 @@ MDMessageCmd /etc/apache/md-message + + MDChallengeDns01Version + + MDChallengeDns01Version 1|2 + MDChallengeDns01Version 1 + + server config + + Available in version 2.4.58 and later + +

+ Set the way MDChallengeDns01 command is invoked, e.g the number and + types of arguments. See MDChallengeDns01 + for the differences. + This setting is global and cannot be varied per domain. +

+ + + + + MDMatchNames + + MDMatchNames all|servernames + MDMatchNames all + + server config + + Available in version 2.4.58 and later + +

+ The mode `all` is the behaviour as in all previous versions. Both ServerName + and ServerAlias are inspected to find the MDomain matching a VirtualHost. + This automatically detects coverage, even when you only have added + one of the names to an MDomain. +

+ However, this auto-magic has drawbacks in more complex setups. If you set + this directive to `servernames`, only the ServerName of a virtual host is + used for matching. ServerAliases are disregarded then, for matching. + Aliases will still be added to the certificate obtained, unless you also + run `MDMembers manual`. +

+ Another advantage of `servernames` is that it gives you more flexibility + with sub-domains and wildcards. You can define one MDomain with a wildcard + and have other MDomains for specific sub-domain names. +

+
+
+ diff --git a/docs/manual/mod/mod_md.xml.fr b/docs/manual/mod/mod_md.xml.fr index 9217e5ed681..98d76c15773 100644 --- a/docs/manual/mod/mod_md.xml.fr +++ b/docs/manual/mod/mod_md.xml.fr @@ -2,7 +2,7 @@ - +