haproxy online acl analyzer or debugger for acl analysis
Is it possible to check the haproxy why the
acl is not matching.
May be logs or debugm as why nothing matched or can there be an online tool for the same?
See also questions close to this topic
HaProxy port 443 url redirect
I was using .htaccess to redirect users to cloud.
Here is my config in apache mod.i put in some dummy urls. it needs to redirect on port 443. I need to switch over to Ha Proxy, I am using the latest stable haproxy. 1.8
Options +FollowSymLinks RewriteEngine on RewriteRule ^token. https://123.testing.io:443/oauth/token [R=301,L] RewriteRule ^test2.* https://345.testing.io:443/svc/device/dev?limit=100 [R=301,L] RewriteRule ^test3.$ https:/456.testing.io:443/svc/v1/com/devices [R=307,L]
so basically when someone goes to the server with /token it forwards them to the cloud url on port 443. The requests are also being sent on port 443. cant figure out how to get these to work in haproxy. backend needs IP not url. These urls are in aws cloud, I cannot use IP address only url. can someone assist please. thank you.
HAProxy use different port for main and backup connections
I am using HAProxy (1.7) to manage connections to my MySQL Database. For the Master (write) port I have the following configuration:
frontend DB_write_port33306 bind *:33306 default_backend DB_write_port backend DB_write_port option httpchk default-server port 9200 inter 10s downinter 10s fall 3 rise 3 on-marked-down shutdown-sessions maxconn 100 server db-server-1 22.214.171.124:3306 check server db-server-2 126.96.36.199:3306 check backup
This connects to db-server-1 and checks port 9200 for a http response (managed using xinetd on the server). If it fails to connect or gets a 503 response it moves the connection to the db-server-2 which is the
What I am trying to find out is if there is a way to control which port it connects to when the
backupoption is engaged.
e.g. check port 9200 on both db-server-1 and db-server-2 whilst db-server-1 is active.
If db-server-1 fails, check db-server-2 using port 9201
I have been going through the documentation, but that has left me more confused that when I started.
Limited number of requests for a specific time in haproxy?
Good day. How can I limit the number of requests to the backend per time unit? For example, 100 requests in 10 ten seconds, in the next 10 seconds another 100 requests.
backend de_backend server name 188.8.131.52:5314 weight 1 maxconn 50 check inter 20000
maxconn - allows to send packets in groups, but how to limit the time?