nginx include conf

nginx 的配置很灵活,支持include配置文件,如果我们的域名都配置到nginx.conf. 这个文件就会比较乱, 也影响管理和阅读.所以直接拆分出来,颜色配置文件分成不同的配置文件.

怎么实现呢
see


                                            nginx  include conf

如果你想在vhost下放多个配置文件
我想都加载nginx

include /usr/local/nginx/conf/vhost.d/*.conf

然后nginx -s reload 就ok了