upstream api { server localhost:55001; } server { location = / { return 200 'euqal root'; } location / { return 200 'else'; } }


/ 으로 접속하면 equal root 뜸

/asdf로 접속하면 else 뜸


근데


upstream api { server localhost:55001; } server { location = / { root /usr/local/sbin/carpediem-web/build; index index.html index.htm; try_files $uri /index.html; } location / { proxy_pass http://api/; } }


여기선

/로 하면 api로 빠짐. 머임 씨발?