centos 6.5 下使用nginx 反向代理 多个tornado
2024-09-26 01:59:21
centos 6.5
nginx 1.4.4
/etc/nginx/conf.d 下创建tornado.conf upstream tornado {
server 127.0.0.1:8887;
server 127.0.0.1:8888;
server 127.0.0.1:8889;
}
server {
listen 8090;
location / {
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_pass http://tornado;
}
}
# service nginx restart
输入127.0.0.1:8090即可看到效果
最新文章
- bootstrap 实战入门教程(一)
- 部分MP4在谷歌浏览器上无法播放
- unity3d Vector3.Lerp解析
- EXCEL中汉字转大写拼音
- html5,表格与框架综合布局
- 剑指offer--3题
- [转]BluetoothDevice.getType()-一个常常被忽略了的函数。好用的不要不要的
- HDU1054Strategic Game(最小顶点覆盖数)
- 破解C#的readonly只读字段
- .Net 4.5 Task
- EditText默认不显示光标,不可编辑,点击它,进入编辑状态,光标显示
- 利用PL/SQL Developer工具导出数据到excel,导入excel数据到表
- 我的android学习脚步----------- Button 和监听器setonclicklistener
- 编译安装nginx却requires the PCRE library
- 再起航,我的学习笔记之JavaScript设计模式06(抽象工厂模式)
- 批量查询sql脚本
- Python Web框架篇:Django Model ORM(对象关系映射)
- IE iframe cookie问题(p3p)
- 百度地图失去坐标html
- 1、jQuery的使用入门