Nginx config fix for 404

This commit is contained in:
Juan Ferrer 2019-02-01 09:47:52 +01:00
parent 6290e9e33f
commit 17d7945065
1 changed files with 4 additions and 1 deletions

View File

@ -6,8 +6,11 @@ server {
autoindex off;
root /usr/share/nginx/html;
error_page 404 =302 /;
error_page 404 = @notfound;
@notfound {
return 302 /;
}
location ~ ^(/[a-zA-Z0-9_-]+)?/(?<path>api(/.*)?)$ {
resolver 127.0.0.11;
proxy_pass http://api:3000/$path$is_args$args;