Skip to content

Commit 971c22f

Browse files
committed
Fix redirects
1 parent f7f0e24 commit 971c22f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nginx.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ server {
8282
# alias /opt/invenio/var/instance/static;
8383
# autoindex off;
8484
#}
85+
#Redirect old urls from redirect-map
86+
if ( $redirect_uri ) {
87+
return 301 $redirect_uri;
88+
}
8589

8690
listen 443 ssl; # managed by Certbot
8791
ssl_certificate /etc/letsencrypt/live/data.caltech.edu/fullchain.pem; # managed by Certbot

0 commit comments

Comments
 (0)