title: haproxy to deny access based on url and ip addresses
body: <p>I'm running HAproxy 1.6.8 and want to restrict access to web's admin login with whitelist of IP addresses. But I can't figure out how to do it properly.</p>
  
  <pre><code>frontend main
  mode http
  bind 0.0.0.0:80
  acl admin_page path_beg,url_dec -i /admincp
  acl whitelist src 10.0.0.0/8
  </code></pre>
  
  <p>My intention is to use:</p>
  
  <pre><code>http-request deny admin_page unless whitelist
  </code></pre>
  
  <p>But haproxy check complaints I was incorrect and can't do this. </p>
  
  <p>What's your thought?</p>