From cd8efa12d0002930665857230e20d0bff4a759f8 Mon Sep 17 00:00:00 2001 From: Alexis Date: Wed, 13 May 2026 13:59:21 +0200 Subject: [PATCH] fix(nginx): replace 301 redirects with rewrite rules for /flintstones and /orcid2words to prevent internal port exposure and improve URL handling --- frontend/nginx.conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/nginx.conf b/frontend/nginx.conf index d89e1a3..dc81a66 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -17,7 +17,8 @@ server { } location = /flintstones { - return 301 /flintstones/; + # Sin 301: Apache puede reescribir `Location` y exponer puerto interno (p. ej. :5173) y bucles. + rewrite ^ /flintstones/ last; } location ^~ /orcid2words/ { @@ -26,7 +27,7 @@ server { } location = /orcid2words { - return 301 /orcid2words/; + rewrite ^ /orcid2words/ last; } location / {