Redirect from IP-Adress to FQDN
I would like to redirect the query in the browser “http://192.168.1.1” to the domain “https://opnsense.dummy.tld”. So that the browser recognizes the certificate correctly and does not always get an...
View ArticleHA proxy Redirect NOT WORKING
Hi, I have configured HA proxy for our Windows application where is running on port 80 ; HA proxy runs on Linux machines. I have tried to restart all https requests(SSL) to backend server port(80) by...
View ArticleOnly one port for http and https with ssl termination
I want my web application run only on port 4443. So i added this port to my docker container on Haproxy. Now i want to inspect the incoming request and if it is not https, it should redirect to it....
View ArticleHelp interpreting Statistics Report data
Hi, Context - running v2.0.5, with one frontend, and about 5 backends, all HTTP mode. Requests to frontend are routed to one of the backends based on URL pattern matching. In one of the backends, the...
View ArticleHAProxy ACL's - Support of Arithmetical Operations
I am trying to implement a logic as below to route the requests across different backends depending on if some part of the URL is “odd” or “even” number. The logic is described as below: Parse the URL...
View ArticleCannot open configuration file/directory /path/to/haproxyconfig
i have configure HAproxy for http and https but after reboot the server getting error. can any one help. [ALERT] 182/150239 (1614) : Cannot open configuration file/directory /path/to/haproxyconfig :...
View ArticleHA proxy to drop connection which includes string
Hello, I am using HA proxy as a loadbalancer. I need to drop all requests which contain the string in the middle of request. I found out the solution like silent-drop my additions in settings look...
View ArticleSSL Redirect - Chained Proxies via Proxy Protocol
Hello, iam running two haproxy instances which talk over the proxy procol. (Proxy-A and Proxy-B). If the request was made via http i want to redirect the request on Proxy-B. http-request redirect...
View ArticleHTTP logs w/ keepalive : monitoring the http request times, TR, Tt
Hey, I need to monitor the total request time. Configuration: http-server-close and HTTP logs, haproxy 1.7. The issue is it seems the timers TR and Tt depend on the beginning of the TCP connection. It...
View ArticleACL doesn't work with multiple condition (beg_path AND
I have issue with my haproxy that running on my Ubuntu 16.04, i want to set static token to both environment on my server. I am using path_beg and ssl_fc_sni this is my config frontend https bind...
View ArticleUsing Header Fetches in Concatenated String
Hi, I’m trying to bucket requests by type and user so that I can rate-limit based on concurrent connections. I think I’ve got this mostly figured out, but I’m hitting a snag and was hoping someone...
View ArticleHttp-response set-header
Hi, I am experimenting with using the http-response command, specifically the following line: http-response set-header X-Server %s The configuration is as follows: listen proxies-in bind 0.0.0.0:18509...
View ArticleTCP fast open is not always applied
To accelerate L4 performance between origin and end-user, I’ve utilized TCP fast open feature on HAProxy. My expectation is that all requests are accelerated by TCP fast open. But on the result, all...
View ArticleHAProxy + Wordpress into Docker : DOWN status
Hello, I have a server with HAProxy & Docker, I have installed Wordpress on it, but it seems HAProxy cannot connect to Wordpress. On the server I have a certificate and Wordpress seems running. I...
View ArticleIssue with rate limiting large post requests
I am using HAProxy v2.0.13 in front of an API and have attempted to implement URL based rate limiting to try and limit connections to 5 within a 30 minute sliding window per source IP for the...
View ArticleHaproxy Layer 4 time out
Hi , i had been using haproxy (2 servers) from last 2 years with keepalived . suddenly haproxy start throwing layer 4 time out and logs throwing no backend servers unavilable… so that i had to remove...
View ArticleHTTP Response Body Inspection and matching string in acl
Hi, I am terminating the SSL in haproxy and send the request received to backend server which is again running on https. I want to inspect the payload on every response received from backend server...
View ArticleHow to redirect changing path in the backend
I have Portainer running at portainer_agent:9000 in my Swarm. I would like to access http://myserver.com/portainer to get portainer, but I can’t find how to accomplish that. The “http-request...
View ArticleHAPROXY sc_get_gpc0 not working
I have been struggling to get this rate-limiting configuration to work on HAProxy. As seen below I am attempting to use “sc2_get_gpc0” to get a second value stored in the hour_hold stick table. This...
View ArticleAlternative for nginx feature redirect on ssl error (http code 497)
When using nginx I can just use the 497 error code specific to nginx 497 HTTP Request Sent to HTTPS Port and redirect to https with this rule: error_page 497 https://$host:$server_port$request_uri;...
View Article