Error while setup hapee1.6r2-rest-api in ubantu

Hello,
I have an issue installing HAProxy rest-api in ubantu-14.04. I followed the instructions exactly as documented at http://www.haproxy.com/doc/hapee/1.6r2/api/webbased.html#installation but at the stage where I test the API using

wget -O - 192.168.122.185/api/2/scope/root/l7/farm

I get the following error:

root@ubuntu:/var/log/apache2# wget -O - 192.168.1.5/api/2/scope/root/l7/farm
–2017-08-11 19:11:20-- http://192.168.1.5/api/2/scope/root/l7/farm
Connecting to 192.168.1.5:80… connected.
HTTP request sent, awaiting response… 500 Internal Server Error
2017-08-11 19:11:20 ERROR 500: Internal Server Error.

Also note that in 000-default.conf I configured the module this way because the URL mentioned in /usr/share/doc/hapee-1.6r2-rest-api/examples/apache2.conf gave an Error 400

ProxyPassMatch ^/(api(/.*)?)$ unix:///var/run/hapee-1.6/hapee-rest-api.sock|fcgi://localhost/

Please do contact if any more information is required.

Hi,

For HAProxy Enterprise Edition, please reach out to HAProxy Technologies support directly: support@haproxy.com.