nginx负载均衡精简配置实例
2024-09-28 01:17:39
[root@localhost ~]# vim nginx.conf user nginx;
worker_processes ; error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid; events {
worker_connections ;
} http { upstream pools {
server 10.10.0.110: weight=;
server 10.10.0.110: weight=;
} server {
listen ;
server_name localhost;
location / {
root html;
index index.html index.htm;
proxy_pass http://pools;
proxy_set_header Host $host;
} }
}
最新文章
- html特殊字符 编码css3 content:";我是特殊符号";
- 低版本IE浏览器 input元素出现叉叉的情况
- winpcap usb山寨网卡识别
- Android学习笔记之DocumentBuilder的使用....
- php短信发送
- bootstrap ace treeview树表
- Expression Blend制作自定义按钮(转)
- kali linux SET工具包
- java通过反射获取调用变量以及方法
- swift苹果的下一代语言
- httphandler与httpmodule区别
- php生成缩略图
- Python自动化之Django的CSRF
- static和extern关键字 对函数的作用
- perl正则表达式第三周笔记
- ASP.NET之旅—再一次与ASP谋面
- C++ map multimap
- (转)hibernateTools工具安装及使用总结(eclipse 3.6)
- CMake的一些正确姿势
- BZOJ3712[PA2014]Fiolki——并查集重构树