diff --git a/ssadmin-web/nginx.conf b/ssadmin-web/nginx.conf index e157f52fae364464ed02297d4cae794e6eaa5a46..93807258ac8e8568f647af5fcb8f65a415aefd8f 100644 --- a/ssadmin-web/nginx.conf +++ b/ssadmin-web/nginx.conf @@ -16,7 +16,7 @@ server { try_files $uri $uri/ /index.html; } - location /api/ { ## 后端项目 - 管理后台 + location / { ## 后端项目 - 管理后台 proxy_pass http://ssadmin-server:28080/; ## 重要!!!proxy_pass 需要设置为后端项目所在服务器的 IP proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr;