Apache and Nginx are the two open source web servers which account over 50% of the total traffic on the internet. Those solutions handle a diverse workload and are compatible with other software, which is associated with the server, in order to produce complete web stack.
Both Apache and Nginx excel in its own way and have their own qualities but the latter is considered to be the fastest web server in the world. Big technology companies such as WordPress, Comodo, Netflix, Github, Cloudflare had already switched to Nginx due to its high performance and resource requirements. NGINX set of features and some server roles are:
- Reverse proxy server for the HTTP, HTTPS, IMAP, POP3 and SMTP protocol.
- Front-end proxy for Apache and other web servers, combining the flexibility of Apache along with the support of good static content performance of NGINX.
- Load balancer and an HTTP cache.
- As Nginx only passes true HTTP requests, it protects your server from common attacks such as DDOS (Distributed Denial of Service).
- Compatible with GZIP compression
- High output
This blog guides on how to set up Nginx which is known for stability, simple configuration, rich attribute set and effective resource utilization as a reverse proxy for Apache on Ubuntu 16.04.