默认conf指向位置

查看nginx 默认配置文件所在位置
>> nginx -t 
print --> nginx: the configuration file /etc/nginx/nginx.conf syntax is ok 
 
>> vim /etc/nginx/nginx.conf
text --> include /etc/nginx/conf.d/*.conf; 
这是nginx默认读取配置文件的位置
现在在后面加上我们自己的新配置文件路径
include /opt/www/wwwroot/test/nginx/conf/*.conf;
include /opt/www/wwwroot/test/nginx/dev-conf/*.conf; 
 
nginx重新加载配置文件
service nginx reload
posted @ 2016-12-07 10:32  夜未央丿  阅读(188)  评论(0编辑  收藏  举报