nginx反向代理集群配置
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
upstream tomcats{
ip_hash;
server 115.233.227.46:28090;
server 115.233.227.46:28091;
}
server {
listen 9000;
server_name localhost;
location / {
root html;
index index.html index.htm;
proxy_pass http://tomcats;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
最新文章
- Linq查询数据集取得排序后的序列号(行号)
- Unique Paths [LeetCode]
- 单例模式(Singleton)的6种实现
- Lintcode--001(比较字符串)
- 我写过的软件之FileExpert
- 【剑指offer】的功率值
- 【使用Itext处理PDF文档(新建PDF文件、修改PDF文件、PDF中插入图片、将PDF文件转换为图片)】
- [Luogu2057]善意的投票
- Android Satudio的使用记录
- Xcode中SVN不能提交.a文件的解决方法
- 3ds max学习笔记-- 动画
- java面试复习题四
- 点云PCL中小细节
- iOS开发:一个高仿美团的团购ipad客户端的设计和实现(功能:根据拼音进行检索并展示数据,离线缓存团购数据,浏览记录与收藏记录的批量删除等)
- 图论-桥/割点/双连通分量/缩点/LCA
- Spring Cloud config之二:功能介绍
- 常用快捷键及eclipise快捷键
- 【Android】21.2 2D图形图像处理(Canvas和Paint)
- php array_flip() 删除数组重复元素
- opencv—读取一张图片并滤波
热门文章
- Monkey初步使用
- Java进阶知识06 Hibernate一对一单向外键关联(Annotation+XML实现)
- flask框架(八): 响应和请求
- Javascript引擎的单线程机制和setTimeout执行原理阐述
- orale数据库的SQL查询
- Chrome Development Tool: [VM] file from javascript
- mysql删除数据库所有表
- JxBrowser开启调试模式,JxBrowser debug
- LC 889. Construct Binary Tree from Preorder and Postorder Traversal
- javascript之Prototype属性