diff --git a/nginx.conf b/nginx.conf index 5e28cf9f24..71b4394fd8 100644 --- a/nginx.conf +++ b/nginx.conf @@ -59,6 +59,13 @@ http { try_files $uri $uri/index.html =404; } + # serve the vuln-comparison page for /vulnerabilities page without a vuln id + # captures /vulnerabilities /vulnerabilities/ and /vulnerabilities/index.html + location ~ ^/vulnerabilities(\/|\/index.html)?$ { + rewrite ^ /chainguard/chainguard-images/vuln-comparison/index.html; + } + + # all vulnerabilities with an ID get rendered by this page using javascript location ~ ^/vulnerabilities/ { rewrite ^ /vulnerabilities/index.html break; }