Defining "default" "http" clause should not be allowed in the configuration
Defining 'default' 'http' configuration should not be allowed in configuration files, as default
is reserved for internal use in listen-on
statements. For example, the following configuration file should be rejected:
tls local-tls {
key-file "key.pem";
cert-file "cert.pem";
};
http default {
endpoints { "/dns-query"; };
listener-clients 100;
streams-per-connection 100;
};
options {
listen-on { 10.53.0.1; };
http-port 80;
https-port 443;
http-listener-clients 100;
http-streams-per-connection 100;
listen-on port 443 tls local-tls http default { 10.53.0.1; };
listen-on port 8080 tls none http default { 10.53.0.1; };
};
Edited by Artem Boldariev