Skip to content

Commit

Permalink
Display some custom text if we're getting a 500 back from the server.
Browse files Browse the repository at this point in the history
  • Loading branch information
MelissaAutumn committed Mar 7, 2024
1 parent d842ca8 commit e4a596d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions frontend/docker/etc/nginx/conf.d/appointments.conf
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ server {

# 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;
#}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
default_type text/html;
return 500 'There is a problem loading the api. Please try again later.';
}
}

# Stage Shortlink Redirect
Expand Down

0 comments on commit e4a596d

Please sign in to comment.