本文共 422 字,大约阅读时间需要 1 分钟。
server { listen 3010; server_name localhost; location / { root /usr/s_sinux_project/dist;#你的dist目录 index index.html index.htm; try_files $uri $uri/ /index.html; } location /api/ { proxy_pass http://127.0.0.1:8888/; } location /tag/ { proxy_pass http://127.0.0.1:11223/; } } 转载地址:http://jmcfk.baihongyu.com/