sparse-intern-71089
01/16/2023, 6:30 PMbillowy-army-68599
rhythmic-tailor-1242
01/16/2023, 8:47 PMwww
still doesn't work:
const target = alb.createTargetGroup(
"web-target", {vpc: unikVpc, port: PORT}
);
const httpsListener = target.createListener("web-listener", {
port: 443,
certificateArn: certificateValidation.certificateArn
});
httpsListener.addListenerRule("nginx", {
actions: [{
type: "redirect",
redirect: {
host: "unik.style",
protocol: "HTTPS",
port: "443",
statusCode: "HTTP_301",
},
}],
conditions: [{
hostHeader: {
values: ["unik.style", "www.unik.style"],
},
}],
})