1. ssh执行 cat /etc/nginx/app.d/server.webstation-vhost.conf
    找到对应http端口:

    server{
        listen   7777 default_server; 
        #端口
        listen   [::]7777 default_serve;
        ....
        ....
        root    "/volume1/root/xxxxxx" 
        #网站路径
        ....
        ....
        include /usr/local/etc/nginx/conf.d/xxxxxxxxxxxxxxxxxxxxxxxxxxx/user.conf*
        #Ngnix配置文件位置
    }
    
  2. 记录 include /usr/local/etc/nginx/conf.d/xxxxxxxxxxxxxxxxxxxxxxxxxxx/user.conf*

  3. 创建Ngnix配置文件:cd /usr/local/etc/nginx/conf.d/

  4. 查看所有目录:ls;找到对应随机值的目录进入:cd xxxxxxxxxxxxxxxxxxxxxxxxxxx/

  5. 创建配置文件:sudo vi user.conf.dir

  6. 编辑保存!wq

  7. 重启web:sudo nginx -s reload