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?

link|improve this question

feedback

2 Answers

up vote 3 down vote accepted

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.

link|improve this answer
feedback

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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