listen 443 ssl http2; include /etc/nginx/conf.d/include/ssl-settings; include /etc/nginx/conf.d/include/init-optional-variables; location / { set_by_lua_block $hns_domain { return string.match(ngx.var.host, "[^%.]+") } set $path $uri; include /etc/nginx/conf.d/include/location-hns; }