I want to make my server ssl protected, it has two parts one for website and another for application.
to balance them we have used haproxy
. Now we want to secure this haproxy. I have installed the certificates and key files
While configuring haproxy.cfg as follow :
frontend https
bind *:443 ssl crt /etc/ssl/ssl.key/myserver.key /etc/ssl/certs/www_appointpress_com.ca-bundle /etc/ssl/certs/somefile.crt
acl hari path_beg /customers
acl css path_beg /assets
reqadd X-Forwarded-Proto:\ https
default_backend appointpress_site
while restarting haproxy I am getting error like :
bind only supports transparent ...... options
.
How can I resolve this error
Best Answer
Try this , in at least this version (own built)
root@server5:~# haproxy -vv
Then try a configuration of this kind in haproxy
You just need to terminate the SSL on your webservers inside. So encrypt traffic all the way. This works for me.