New answers tagged

0

Fast forward to 2019 and you can: absolute_redirect off; port_in_redirect off; From docs for absolute_redirect: If disabled, redirects issued by nginx will be relative.


0

I have also seen random issues with 'SD--' termination state in haproxy logs while trying to download big file which is served by apache tomcat. The problem was fixed by increasing connectionTimeout from 5 seconds to 30 seconds in tomcat connector's configuration. Maybe rabbitmq has some similar tunables also.


1

reqrep takes three parameters <search> <string> <cond>. <search>: is the URL, for example www.somedomain.com/please/rewrite/this/ <string>: is the replace string, for example /test <cond>: is for any special conditions, ignore it for now. In the example, the replace will do the following: FROM: http://www.somedomain....


1

you need to add this to your backend section: http-request set-header Host a.b.c.d frontend ft1 mode http option forwardfor bind *:443 ssl crt /etc/ssl/certs.pem use_backend bk_Lo if { path_beg /lo } use_backend bk_Lp if { path_beg /lp } default_backend bk_Lo backend bk_Lo mode http server lo ...


3

Use reload instead. systemctl reload haproxy


1

timeout http-request <timeout> This is to set the maximum allowed time to wait for a complete HTTP request If this parameter is not set, the client timeout still applies between each chunk of the incoming request. It should be set in the frontend to take effect, unless the frontend is in TCP mode, in which case the HTTP backend's timeout will be used....


0

I think you can try with HAProxy Ingress rewrite. Annotations The following annotations are implemented: ... ingress.kubernetes.io/app-root: Defines the URL to be redirected when requests are done to the root context /. Or using a Rewrite Target.


0

You'll want a listener that presents a certificate for the relevant Skype for Business CNAMEs for your domain (see the S4B documentation). This may be the same certificate you use on your actual Edge server too. Then create rules that send requests for all these names to the Edge server. Very naïve config example to illustrate: frontend s4b bind "${...


1

/run/haproxy-master.sock is started as a socket when systemd runs haproxy: 24335 usr/sbin/haproxy -Ws -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -S /run/haproxy-master.sock If not configured on the command line, dataplaneapi picks it up using env variables passed to the child process from the master, specifically from HAPROXY_MWORKER and ...


0

I use option dontlog-normal in the frontend config - http://cbonte.github.io/haproxy-dconv/2.0/configuration.html#4-option%20dontlog-normal and got no more log entries for /stats frontend stats bind *:8404 # Enable Prometheus Exporter http-request use-service prometheus-exporter if { path /metrics } stats enable stats uri /stats ...


0

This does not mean what you intended it to mean: { path /change hdr(host) -i passwords.example.com } String matches accept multiple values separated by a space, so this is actually comparing the request path against any one of the literal strings /change or hdr(host) or -i or passwords.example.com which isn't what you intended at all... but this explains ...


0

reqirep ^([^\ ]*)(\ .*)mc=cg(.*) \1\2mc=cd\3 Works perfectly.


Top 50 recent answers are included