title: AWS Load Balancer allow certain ip addresses on URL path
body: <p>Currently I have an application set up on AWS using application load balancer with 2 EC2 in target group:</p>
  
  <p>DNS -> AWS-ALB -> EC2(2)</p>
  
  <p>I need help allowing only certain IP addresses on the application URL context path.</p>
  
  <p>For eg:
  www.abc.com should be accessible for all but www.abc.com/xyz should be accessible only to certain IP addresses. </p>
  
  <p>I tried NGINX solution on EC2 and that works only when i hit the EC2 IP directly with allow and deny rules.</p>