Skip to content

Commit

Permalink
add missing nginx config for new container
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesw committed Nov 25, 2024
1 parent d6dabe2 commit fd3a887
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions nginx/conf.d/default.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
server {
listen 80;
server_name _;

# redirect language code dirs to an index.html dir
#
if (!-f $request_filename) {
rewrite "^\/orcid-web-frontend\/([a-z]{2}(_[A-Za-z]{2})?)\/.*" /orcid-web-frontend/$1/index.html last;
}

location / {
root /usr/share/nginx/html;
index index.html index.htm;
}

# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}

}

0 comments on commit fd3a887

Please sign in to comment.