Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

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.

share|improve this answer

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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