node.js - How to configure nginx to directly access www.abd.com/node/dist/index.html through www.abd.com
某草草
某草草 2017-06-22 11:54:29
0
2
970

1. The question is as stated in the title, thank you all for your answers!

某草草
某草草

reply all(2)
大家讲道理
server {
    listen       80;
    server_name  www.abd.com;
    location / {
        root     /项目目录/node/dist;
        index    index.html;
    }
}
过去多啦不再A梦

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template