1. The question is as stated in the title, thank you all for your answers!
server { listen 80; server_name www.abd.com; location / { root /项目目录/node/dist; index index.html; } }
Added: server_name can be arbitrary:
server { listen 80; server_name www.abd.com; location /{ proxy_pass http://www.abd.com/node/dist/index.html; } }
Of course, you can also use redirects
Added: server_name can be arbitrary:
Of course, you can also use redirects