Haproxy custom settings ignored?

I try to setup some custom settings for haproxy but they are ignored.
When I check the file in console errorloc comes before errorfile. So the change is in written in /etc/haproxy/haproxy_new.cfg

But the result is the 503 error page from the respective container.

Example:

defaults
errorloc 503 http://www.example.com/haproxy/503sorry.html
errorloc 504 http://www.example.com/haproxy/504sorry.html

Running on 1.4.1 and rancher/lb-service-haproxy:v0.5.9