How to configure acl in haproxy?

Solution Verified - Updated -

Issue

  • How to use acl in haproxy?
  • how to configure that satisfies all of the following conditions.
    1) Allow http request to aaa.example.com.
    2) Allow http request to bbb.example.com from IP address 192.168.0.1.
    3) Deny all http request exclude above connection.

Environment

  • Red Hat Enterprise Linux 8
  • haproxy

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content