Nginx config fix for 404
This commit is contained in:
parent
6290e9e33f
commit
17d7945065
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue