From f47ce96ce86b2582e61284103f64f28c6dd9a1c1 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Sat, 26 Jan 2019 14:22:59 +0100 Subject: [PATCH] Nginx conf fixed --- front/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front/nginx.conf b/front/nginx.conf index 6711013b2..c8f6cea3a 100644 --- a/front/nginx.conf +++ b/front/nginx.conf @@ -7,9 +7,9 @@ server { root /usr/share/nginx/html; - location ~ ^(/[a-zA-Z0-9_-]+)?(?:/api(/(.*))?)$ { + location ~ ^(/[a-zA-Z0-9_-]+)?/(?api(/.*)?)$ { resolver 127.0.0.11; - proxy_pass http://api:3000/$1$is_args$args; + proxy_pass http://api:3000/$path$is_args$args; } location ~ ^(?:/(.*))?$ { alias /salix/dist/$1;