Nginx configuration home page, java service and koa2 service have no sense of docking

  1. now the company is working on the front-end separation project, but the front-end project cannot be reconstructed directly. The original project is deeply embedded in the Java service and can only be separated step by step.

2. Now with nginx configuration,
clipboard.png

new.shoujinwang.com/vue

clipboard.png

vue

clipboard.png
now the front-end service accesses xxx.xxx.com:3000/vue is the home page
because the project dimension is mainly in the old project, so I only use vue to reconstruct the home page and list page

.

ask how to configure this nginx. When you visit xxx.xxx.com, you actually visit the url, of xxx.xxx.com/vue and the page shows xxx.xxx.com
I tried to rewrite url using nginx rewrite but failed.
solve

Menu