1.在nginx/conf/nginx.conf中添加:include conf.d/*.conf;2.在同级目录下新建conf.d文件夹,在conf.d文件夹中新建自定义配置文件,如:cms.confupstream cms_server { server localhost:8080