码迷,mamicode.com
首页 >  
搜索关键字:haproxy varnish    ( 1930个结果
最近有个需求,就是把某个网址跳转到另外一个网址
比如客户访问http://www.abc.comip对应10.10.10.1.需要跳转到另外一个网址http://www.125.com.我是在haproxy上实现的。frontendrewritetotripbind192.168.1.250:80modehttpoptionhttplogmaxconn2000aclclubhdr_reg(host)-iwww.abc.comredirectprefixhttp://trip.125.comifclub..
分类:其他好文   时间:2015-07-17 14:13:43    阅读次数:150
Haproxy做代理,后端nginx获取真实用户IP
1)修改haproxy配置文件,添加如下参数:optionhttpclose optionforwardfor2)修改nginx配置文件,添加如下参数注意:需要编译模块--with-http_realip_module#haproxy服务器IP set_real_ip_from192.168.64.128; real_ip_headerX-Forwarded-For; real_ip_recursiveon;3)分别重启hap..
分类:其他好文   时间:2015-07-16 14:15:55    阅读次数:478
大型网站技术架构-知识点
WebServer: Apache,Nginx,IIS,JBoss 动静分离: Img,doc,js,css等静态资源,使用单独的web Server处理。 动态页面静态化处理。 缓存: 客户端(浏览器)缓存: 根据Http协议的特性,修改header参数。 ,前端页面缓存, Varnish,squ...
分类:Web程序   时间:2015-07-14 17:43:00    阅读次数:238
负载均衡(转载)
Nginx/LVS/HAProxy是目前使用最广泛的三种负载均衡软件,本人都在多个项目中实施过,参考了一些资料,结合自己的一些使用经验,总结一下。一般对负载均衡的使用是随着网站规模的提升根据不同的阶段来使用不同的技术。具体的应用需求还得具体分析,如果是中小型的Web应用,比如日PV小于1000万,用...
分类:其他好文   时间:2015-07-10 15:10:06    阅读次数:94
haproxy 配置详解
####################全局配置信息###############################参数是进程级的,通常和操作系统(OS)相关#########globalmaxconn 20480 #默认最大连接数log 127.0.0.1 local3 #[err warning ...
分类:其他好文   时间:2015-07-10 14:53:02    阅读次数:116
vcl状态引擎介绍,varnish安装配置
Varnish介绍Varnish是一款高性能的开源HTTP加速器(其实就是带缓存的反向代理服务),可以把http响应内容缓存到内存或文件中,从而提高web服务器响应速度。与传统的squid相比,varnish具有性能更高、速度更快、管理更加方便等诸多优点,很多大型的网站都开始尝试使用varnish来..
分类:其他好文   时间:2015-07-09 00:59:29    阅读次数:343
haproxy负载均衡
web_proxyserver192.168.20.112web1server192.168.20.137web2server192.168.20.140echo"192.168.20.137>/usr/local/nginx/html/index.htmlecho"192.168.20.140>/usr/local/nginx/html/index.html下载安装haproxytar-zxvfhaproxy-1.4.24.tar.gzcdhaproxy-1.4.24uname-r#查..
分类:其他好文   时间:2015-07-08 23:00:24    阅读次数:564
搭建 CentOS 6 服务器(14) - squid、Varnish
(一)squid 安装Java代码 #yuminstallhttpd-tools-y#htpasswd-c-b/etc/squid/passwordssquiduser123456#yuminstallsquid-y设置Java代码 #cp/etc/squid/squid.conf/etc/squi...
分类:其他好文   时间:2015-07-08 09:25:53    阅读次数:188
varnish 4.0 官方文档翻译21-Reporting and statistics
Reporting and statistics 本部分包括如何查看Varnish正在做什么,从每个http请求流的详细记录到汇总统计计数器。 Logging in Varnish Statistics varnishtop varnishhist varnishstat Logging in Varnish Varnis...
分类:其他好文   时间:2015-07-06 12:37:44    阅读次数:318
使用HAproxy实现view connction负载均衡
1.先安装所需要的服务进程:#yum‐yinstallhaproxykeepalived2.编辑keeoalived的配置文件[root@dragon~]#cat/etc/keepalived/keepalived.conf global_defs{ notification_email{ keepalived } notification_email_fromkeepalived@domain.local smtp_server192.168.1.200 smtp_..
分类:其他好文   时间:2015-07-04 23:38:28    阅读次数:407
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!