@ -31,16 +31,16 @@ message VirtualHost {
string name = 1 [ ( validate.rules ) . string . min_bytes = 1 ] ;
string name = 1 [ ( validate.rules ) . string . min_bytes = 1 ] ;
/ / A list of domains ( host / authority header ) that will be matched to this
/ / A list of domains ( host / authority header ) that will be matched to this
/ / virtual host. Wildcard hosts are supported in the form of “ * . foo.com ” or
/ / virtual host. Wildcard hosts are supported in the form of ` ` * . foo.com ` ` or
/ / “ * - bar.foo.com ” .
/ / ` ` * - bar.foo.com ` ` .
/ /
/ /
/ / . . note : :
/ / . . note : :
/ /
/ /
/ / The wildcard will not match the empty string .
/ / The wildcard will not match the empty string .
/ / e.g. “ * - bar.foo.com ” will match “ baz - bar.foo.com ” but not “ - bar.foo.com ” .
/ / e.g. ` ` * - bar.foo.com ` ` will match ` ` baz - bar.foo.com ` ` but not ` ` - bar.foo.com ` ` .
/ / Additionally , a special entry “ * ” is allowed which will match any
/ / Additionally , a special entry ` ` * ` ` is allowed which will match any
/ / host / authority header. Only a single virtual host in the entire route
/ / host / authority header. Only a single virtual host in the entire route
/ / configuration can match on “ * ” . A domain must be unique across all virtual
/ / configuration can match on ` ` * ` ` . A domain must be unique across all virtual
/ / hosts or the config will fail to load.
/ / hosts or the config will fail to load.
repeated string domains = 2 [ ( validate.rules ) . repeated . min_items = 1 ] ;
repeated string domains = 2 [ ( validate.rules ) . repeated . min_items = 1 ] ;