查看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

最新文章

  1. GLEW OpenGL Access violation when using glGenVertexArrays
  2. paip. 内存占用少的php ide选择评测总结
  3. JavaScript数据类型(转)
  4. mini2440移植uboot-2008.10 (一)
  5. String.format 细节
  6. 【HDOJ】2144 Evolution
  7. [华为机试练习题]55.最大公约数 & 多个数的最大公约数
  8. (27)How to stay calm when you know you'll be stressed
  9. [hdu P4334] Trouble
  10. SignalR 前期简单配置
  11. python查看及修改当前的工作路径
  12. 吴裕雄 11-MySQL查询数据
  13. PHP上传文件参考配置大文件上传
  14. C#往SQLServer中插入大数据
  15. NSData 方法
  16. “小小科技女神”与微软DigiGirlz Day的约会
  17. MAC系统 输入管理员账户密码 登录不上
  18. JVM Guide
  19. php常用函数htmlspecialchars、strip_tags、addslashes解析
  20. 实战:ADFS3.0单点登录系列-集成MVC

热门文章

  1. 如何理解signal函数声明
  2. (翻译) Android ListView 性能优化指南
  3. Mongodb 集群搭建以及常见错误
  4. Httphelper工具1
  5. 从struts2拦截器到自定义拦截器
  6. BIOS详解:什么是BIOS ?BIOS的作用?CMOS及其与BIOS的关系?
  7. Spring MVC---数据绑定和表单标签
  8. 【数据压缩】LZ78算法原理及实现
  9. HTTP could not register URL http://+:86/. 设置VS默认以管理员权限打开
  10. Elasticsearch 5.0 磁盘空间节省策略的认识