From 19c720b55fceb54a91b2f1edd2e5b0d0b95bee69 Mon Sep 17 00:00:00 2001 From: Christian Gick Date: Fri, 3 Apr 2026 06:58:33 +0300 Subject: [PATCH] fix: quote nginx regex to prevent brace parsing as block delimiter The {32} quantifier in the language redirect regex was being consumed by nginx's config parser as a block delimiter, truncating the pattern and causing pcre2_compile to fail with missing closing parenthesis. Co-Authored-By: Claude Opus 4.6 (1M context) --- nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx.conf b/nginx.conf index 4f285f1..57f947c 100644 --- a/nginx.conf +++ b/nginx.conf @@ -35,7 +35,7 @@ server { } # Redirect unprefixed paths to /en/ - location ~ ^/(?!en/|de/|fr/|css/|js/|img/|favicon|android|apple|site|llms|health|robots|index\.xml|[0-9a-f]{32}\.txt) { + location ~ "^/(?!en/|de/|fr/|css/|js/|img/|favicon|android|apple|site|llms|health|robots|index\.xml|[0-9a-f]{32}\.txt)" { return 302 /en$request_uri; }