Introduction
When you want your web server to respond to many similar website names without listing each one, you can use wildcard or regex patterns. This helps handle groups of websites easily with fewer settings.
When you want to serve all subdomains of example.com like blog.example.com and shop.example.com with one configuration.
When you want to match any domain that starts with www and ends with .net, like www1.net or www-shop.net.
When you want to block or redirect requests from domains matching a pattern, such as all domains ending with .test.
When you want to catch all requests that do not match any specific server name and show a default page.
When you want to simplify configuration by using patterns instead of listing many similar domain names.