Where it is located? Sometimes I see it under /etc/haproxy.conf, other times at /etc/haproxy/haproxy.cfg. IF both reside, which one precedes then?


If you look at haproxy manual, you can read:

haproxy  -f  <configuration file> other options...

So, the config file is not optional. It has to be specified when haproxy is started. So, you need to check your startup file such as /etc/init.d/haproxy.


my configuration as of the moment resides on /etc/haproxy/haproxy.cfg.

just run the config using proper permissions.

sudo haproxy -f /etc/haproxy/haproxy.cfg

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.