Skip to content

Commit dcdfa4d

Browse files
author
Masaharu Hayashi
committed
add redirect configuration
1 parent 93fc1d6 commit dcdfa4d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

nginx/weko-ams.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ server {
5454
#allow 127.0.0.0/8;
5555
#deny all;
5656

57+
58+
59+
5760
# rewrite setting for WEKO2
5861
if ($new) {
5962
rewrite ^ $new? redirect;
@@ -218,6 +221,10 @@ server {
218221
root /home/invenio/.virtualenvs/invenio/var/instance;
219222
}
220223

224+
location ~ ^/records/([0-9]+)$ {
225+
return 302 /ams/detail?sess=top&number=$1;
226+
}
227+
221228
location / {
222229
#proxy_pass http://web:5000;
223230
#proxy_set_header Host $http_host;

0 commit comments

Comments
 (0)