Let’s talk about Haproxy which is quite a good reverse proxy, I assume if you are here you know what it is ^^
Let’s walk trough installing it on Raspbian (would work on any *nux), if you are on Debian/Ubunt you can use a cool link that will give you the sources.list.
I wanted to install haproxy using the package manager on my system, but it’s always old versions:
If the version shown in your package manager if what you want, just install it and you go to the configuration.
I needed the version 1.6, so let’s compile ! If you need an other version, keep reading it’s not that hard.
Now a few dependencies that you might need too:
Finally let’s do it:
As you might notice I require PCRE, LIBCRYPT and most important for me OPENSSL.
If you have a few errors try to google them, don’t forget to do what’s below before you try to compile again:
Now we got the binary that we can move:
Last but not least, you need an init script, there you go (I kindly copied it from a package installed version, all the credit goes to the author)
If needed, make some changes ! In my case, everything ran smoothly.
The installation is done, next step is the configuration.