我有一个局域网中的ftp服务器,地址是192.168.1.11我用haproxy是因为很多其他的服务需要它 我把haproxy放在我的软路由(192.168.1.1)上(ubuntu 14.04) 我的haproxyconfiguration是: frontend ao3-ftp bind ftp.ao3.com.au:21 bind ftp.ao3.com.au:20 bind ftp.ao3.com.au:5000-5100 default_backend myftp backend myftp server server1 192.168.1.11 当客户端使用FTP服务时,他们发现无法连接的IP地址的问题: Status: Connected, waiting for welcome message… Reply: 220-FileZilla Server version 0.9.41 beta Reply: 220 Hi welcome to Ao3 ftp Server Reply: 200 Don't care Command: USER ingram Reply: 331 Password required for ingram Command: PASS […]
我对负载均衡概念相当陌生,并且希望使用Haproxy在我的Web服务器之间为下载站点进行负载平衡。 我有点困惑,它是如何工作的。 目标是设置HAProxy转发请求到不同的服务器,以扩大我的总下载容量。 比如我有5个1Gbit / s的服务器。 如果一个运行HAProxy,另外四个运行我的networking服务器,集群的总下载速度是4Gbit / s还是限制在1Gbit / s?
我将HAProxyconfiguration为终止Jenkins CI服务器的SSL连接,通过普通的ol HTTP代理到Jenkins CI服务器后端。 我可以成功执行Jenkins CI服务器Web界面中所有需要的操作,包括pipe理实例。 但是,我得到了Jenkins的“反向代理设置已损坏”警告 。 这是由于更严格的代理configuration检查,因为Jenkins版本1.572,它使用以下forms的URL: https://host-name/jenkins/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/testForReverseProxySetup/a%2Fb/ testing反向代理configuration。 引发警告的典型原因是通过反向代理将%2F解码为正斜杠,从而导致404错误。 对于Apache和nginx反向代理configuration似乎有良好的文档configuration解决scheme来消除此警告。 我没能find的东西类似于Apache的“AllowEncodedSlashes On”选项,或者nginx的“proxy_pass”configuration,甚至是在HAProxy后面设置Jenkins的示例(我使用的是Apache而不是nginx,因为我们已经有适合其他应用程序的HAProxy)。 操作系统:CentOS 6.6 HAProxy版本:1.5.2-2 jenkins版本:1.610
我有一个基于Apache的服务器与Virtualminpipe理工具一起运行一些网站。 我想运行HAproxy将一个域指向一个特定的端口(一个Docker容器)和其他一切(端口80),因为这个服务器上有几个站点。 这可能吗? 任何人有一个示例configuration,我可以工作了吗?
我有3台服务器 –> haproxy – server1(uk) – server2(ru) 我遵循这个教程,并创build了ru.subnets的ip 现在在我的/ etc / haproxy我有这些文件: haproxy.conf ru.subnets 在我的haproxy.conf中: frontend http-frontend bind *:80 mode http reqadd X-Forwarded-Proto:\ http acl blog_acl path_beg /wp-admin acl ru_acl src -f RU.subnets use_backend wwwru if ru_acl use_backend wwwbackend if !ru_acl use_backend wwwru if blog_acl default_backend wwwbackend 一切看起来不错,但是当我尝试加载configuration文件在我haproxy我得到这些错误: [ALERT] 170/084453 (4661) : parsing [/etc/haproxy/haproxy.cfg:37] : […]
我有一个小问题要解决: 我需要find一种方法来在我的服务器上负载均衡,带宽方面,传入的RTMPstream。 我有2个RTMP服务器(nginx-rtmp),我们称之为S1和S2。 RTMP服务器正在侦听1936端口, HAProxy与S1在同一台机器上对数据stream进行负载平衡,只要它在两个服务器上使用带宽,就可以正常工作。 使用当前的configuration,客户端发送一个RTMPstream,S1上的HAProxy接收它并selectS2作为接收服务器,最后将streamredirect到它。 因此,对于1Mbps的stream,S1使用1Mbbs接收数据stream,1Mbps将数据stream转发到第二台服务器,在S2上也使用1Mbps。 这里是HAProxy的configuration: global log /dev/log local0 log /dev/log local1 notice chroot /var/lib/haproxy #user haproxy #group haproxy daemon defaults log global mode http option httplog option dontlognull contimeout 5000 clitimeout 50000 srvtimeout 50000 errorfile 400 /etc/haproxy/errors/400.http errorfile 403 /etc/haproxy/errors/403.http errorfile 408 /etc/haproxy/errors/408.http errorfile 500 /etc/haproxy/errors/500.http errorfile 502 /etc/haproxy/errors/502.http errorfile 503 […]
我试图让HA-Proxy 301redirect一个https域。 我需要: https://example.comredirect到https://www.example.com 这是我试图让它工作: # corp – example.com redirect prefix https://www.example.com code 301 if { hdr(host) -i example.com } redirect prefix https://www.example.com code 301 if { hdr(host) -i www.example.com } acl server01 hdr_dom(host) -i www.example.com 我将不胜感激任何帮助! 编辑的cfg文件示例(底部的代码是cfg的一部分): 全球 日志/ dev / log local0 log / dev / log local1通知 chroot / var / lib […]
我们已经安装了Apache的前端HAProxy。 该设置工作,但客户端的IP地址不转发尽pipe规则“forwardfor”。 我以前曾调查过这样的serverfault上的答案,例如haproxy和转发客户端IP地址到服务器,但目前无法解决问题。 这是configuration: frontend apache-http bind 192.168.56.150:80 mode http option http-server-close option forwardfor header X-Real-IP reqadd X-Forwarded-Proto:\ http default_backend apache-http stats enable #stats hide-version backend apache-http # redirect scheme https if !{ ssl_fc } balance roundrobin cookie SERVERID insert indirect nocache server www-1 10.0.0.120:80 cookie S1 check server www-2 10.0.0.130:80 cookie S2 check PHP服务器variables返回HAProxy的信息: […]
我正在考虑在HAProxy和Apache之间放置清漆。 这是工作,但与HAProxy之间的光油监控光油。 如果Apache停机,它将不会故障转移到另一个Apache。 HAProxy中有没有configuration可以解决这个问题?
我试图捕获我的日志中的每个请求的唯一ID。 我以为我可以在capture request header X-Unique-ID len 16使用capture request header X-Unique-ID len 16 ,但它不工作。 有什么build议么? global log /dev/log local1 maxconn 4096 user haproxy group haproxy daemon stats socket /var/run/haproxy.sock mode 600 level admin spread-checks 5 defaults log global mode http option httplog option dontlog-normal option log-separate-errors option dontlognull retries 2 option redispatch maxconn 2000 timeout connect […]