Hi, This is version three of my patch series. The previous version can be found at [1]. The use case is to be able to configure an HTTP proxy for all subdomains of a domain where there are hundreds of subdomains. This version addresses a comment by Philip Oakley regarding the documentation. You can find the interdiff below. Regards Patrick [1]: http://public-inbox.org/git/20170124170031.18069-1-patrick.steinhardt@xxxxxxxx/T/#u Patrick Steinhardt (4): mailmap: add Patrick Steinhardt's work address urlmatch: enable normalization of URLs with globs urlmatch: split host and port fields in `struct url_info` urlmatch: allow globbing for the URL host part .mailmap | 1 + Documentation/config.txt | 5 +++- t/t1300-repo-config.sh | 36 +++++++++++++++++++++++++ urlmatch.c | 68 +++++++++++++++++++++++++++++++++++++++++------- urlmatch.h | 9 ++++--- 5 files changed, 104 insertions(+), 15 deletions(-) diff --git a/Documentation/config.txt b/Documentation/config.txt index a78921c2b..078e9b490 100644 --- a/Documentation/config.txt +++ b/Documentation/config.txt @@ -1915,9 +1915,9 @@ http.<url>.*:: . Host/domain name (e.g., `example.com` in `https://example.com/`). This field must match between the config key and the URL. It is - possible to use globs in the config key to match all subdomains, e.g. - `https://*.example.com/` to match all subdomains of `example.com`. Note - that a glob only every matches a single part of the hostname. + possible to specify a `*` as part of the host name to match all subdomains + at this level. `https://*.example.com/` for example would match + `https://foo.example.com/`, but not `https://foo.bar.example.com/`. . Port number (e.g., `8080` in `http://example.com:8080/`). This field must match exactly between the config key and the URL. -- 2.11.0