diff --git a/docker/nginx.common.conf b/docker/nginx.common.conf index 9da6f77b4..723ebf799 100644 --- a/docker/nginx.common.conf +++ b/docker/nginx.common.conf @@ -12,7 +12,7 @@ location / { # 本地CookieCloud location /cookiecloud { proxy_pass http://backend_api; - rewrite ^.+mock-server/?(.*)$ /$1 break; + rewrite ^.+mock-server/?(?.*)$ /$suffix break; proxy_http_version 1.1; proxy_buffering off; proxy_cache off; @@ -54,7 +54,7 @@ location ~ ^/api/v1/system/(message|progress/) { # API代理配置 location /api { proxy_pass http://backend_api; - rewrite ^.+mock-server/?(.*)$ /$1 break; + rewrite ^.+mock-server/?(?.*)$ /$api_path break; proxy_http_version 1.1; proxy_buffering off; proxy_cache off; @@ -104,4 +104,4 @@ location /api/v1/site/icon/ { # 向后端API转发请求 proxy_pass http://backend_api; -} \ No newline at end of file +}