What is the difference between HAProxy and Apache traffic server?
We just got a new website, that we are not happy with our main server.
I am looking at HAProxy and APache Traffic Servers as an alternative. What is the difference between the 2?
HAProxy allows you to balance the load across multiple nodes, and it will even handle fail-over in the case that one of the servers goes down. It is also much lighter than Apache in terms of memory/processing usage.
Apache will provide a lot more functionality than what HAProxy provides, however. As long as you're not using dynamic content, your primary need should be balancing traffic across as many servers as possible.
Why is NGINX taking over Apache?
Nginx is much faster, faster to get started, less prone to bugs, better with large scale applications (think thousands of connections and more), and finally, it is much simpler. I am not saying that nginx is better than apache; I am saying that it has many advantages over Apache. ? Many people use Apache as a proxy server and nginx as the web server. The reason is simple: It's much easier to get started with nginx than with Apache.
I just downloaded the latest version of Apache from the Apache website, started it up, and tried to run a simple phpinfo() script on my browser (which runs fine in nginx).so: undefined symbol: CRYPTOcleanupallexdata The problem is simple: Apache needs to load the mcrypt extension. If you are not familiar with this error, then here is how it goes: First, the apache2 server is started. This opens port 8080.
Then you need to load the module for PHP. But when the server is running, PHP has not been loaded yet. So the error appears.
This is where nginx comes in. If you start nginx, it automatically loads PHP, and thus nginx doesn't need to load mcrypt.
I know that it is possible to do in Apache as well, but it's much easier in nginx. It's not that nginx is better than Apache. It's just that nginx is simpler.
If you want to start with nginx, you will just need to install nginx-full and you are good to go. What are the advantages of nginx? It is much faster. It is much simpler. It's highly configurable. It's much more extensible.
Related Answers
How do I setup a reverse proxy in Windows?
The best of them There are many ways to use Nginx as r...
How to install nginx in Linux without internet connection?
This is a quick guide to installing nginx on the latest version of Ubuntu....
How to install nginx management suite?
You can use either of these 2 ways to install nginx management suite...