fix(nginx): replace 301 redirects with rewrite rules for /flintstones and /orcid2words to prevent internal port exposure and improve URL handling

This commit is contained in:
Alexis
2026-05-13 13:59:21 +02:00
parent d520e4923b
commit cd8efa12d0
+3 -2
View File
@@ -17,7 +17,8 @@ server {
} }
location = /flintstones { 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/ { location ^~ /orcid2words/ {
@@ -26,7 +27,7 @@ server {
} }
location = /orcid2words { location = /orcid2words {
return 301 /orcid2words/; rewrite ^ /orcid2words/ last;
} }
location / { location / {