BInding to ports like 80 and 443 as non-root user

Hi,

HAProxy is running with non-root user. My requirement is to bind the frontend to port 80 and 443.
With root user everything runs fine, but with non-root user it is complaining to bind to above ports.

RHEL 6 is the os version, where haporxy container (2.0.14 haproxy version ) is running.

Can you please guide me how we can achieve to bind to port 80 and 443 with non-root user?

Thank you

.

This has nothing to do with haproxy, this is about your OS and kernel.

Also see:

I solved this using “setcap cap_net_bind_service=+ep”.
Thank you very much for your input ; it gave me a direction.
much appreciated.