1. 在 nginx.conf 文件中引用 conf.d 下的所有配置文件

#在http配置节的末尾添加配置引用
http {
... #gzip on; include /etc/nginx/conf.d/*.conf;
}

2. 在 conf.d 中添加 default.conf 配置文件

server {
listen ;
server_name localhost; #charset koi8-r;
#access_log /var/log/nginx/host.access.log main; location / {
root /usr/share/nginx/html;
index index.html index.htm;
} #代理配置
location /business {
proxy_pass http://business.app.com;
} #代理配置
location /user {
proxy_pass http://user.app.com;
}
}

最新文章

  1. liMarquee演示12种不同的无缝滚动效果
  2. 基调(听云)app,服务器,质量测试手段
  3. 第三百零五天 how can I 坚持
  4. C# .Net基础知识点解答
  5. UVa 10188 - Automated Judge Script
  6. DEBUG 调试
  7. jqGrid Demos
  8. java动态代理(JDK和cglib实现对比)
  9. web前端-----第一弹html
  10. c#基础(一)
  11. C#事件委托概念
  12. Struts2拦截SQL注入
  13. Oracle触发bug(cursor: mutex S),造成数据库服务器CPU接近100%---SQL子游标多版本问题
  14. 详解Java中的final关键字
  15. 神文章2:文本矩阵简述 V1.0 -vivo神人
  16. DevExpress gridcontrol Master-Detail绑定到对象类型
  17. Navicat MySql乱码解决
  18. 51nod1538:一道难题(常系数线性递推/Cayley-Hamilton定理)
  19. Http协议入门:
  20. Idea项目:Failed to create a Maven project ‘…pom.xml’ already exists in VFS 解决

热门文章

  1. C++学习(10)—— 对象模型和this指针
  2. Python3如何上传自己的PyPI项目
  3. php桥接模式(bridge pattern)
  4. 2019年杭电多校第一场 1002题Operation(HDU6579+线性基)
  5. M × N Puzzle
  6. 项目Beta冲刺 随笔集合
  7. vscode代码折叠方法
  8. Vuejs组件基础
  9. [RN] React Native 实现 类似京东 的 沉浸式状态栏和搜索栏
  10. Django 基础篇(一)