# How to create bind policy for requests with or without proxy-protocol header

**URL:** <https://discourse.haproxy.org/t/how-to-create-bind-policy-for-requests-with-or-without-proxy-protocol-header/5177>\
**Category:** Help!\
**Created:** [May 4, 2020, 3:50am UTC](https://discourse.haproxy.org/t/how-to-create-bind-policy-for-requests-with-or-without-proxy-protocol-header/5177 "2020-05-04T03:50:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JeffF](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@JeffF](https://discourse.haproxy.org/u/JeffF)\
**Post date:** [May 4, 2020, 3:50am UTC](https://discourse.haproxy.org/t/how-to-create-bind-policy-for-requests-with-or-without-proxy-protocol-header/5177/1 "2020-05-04T03:50:23Z")

</div>

I have a HAProxy, which listens on port 443. There are 2 types of requests coming to port 443: 1) normal API request which contains proxy-protocol v2 header ( so I need "Accept-proxy, for such packets). 2) health-check request which doesn’t have proxy-protocol header.

How can I configure ‘bind \*:443 …’ rule, so that I can handle 2 types of packets correctly ? i.e HAProxy can apply ‘accept-proxy’ for request with proxy-protocol header, and not using accept-proxy for request which doesn’t have proxy-protocol header.
