My Top 5 Open-Source Web Servers on Linux (2021)
1.Apache
is a free and open-source cross-platform web server software and actively maintained by the Apache Software Foundation.
It is the most popular web server in the world as it powers around 44+% of the website.
Some basic features and support:
-Loadable dynamic modues
-.htaccess
-IPv6 compatible
-Geolocation based on IP
-Bandwidth throttling and Load balancing
Installation:
Debian/Ubuntu:
sudo apt install httpd
Redhat/CentOS
yum install httpd
Fedora:
dnf install httpd
2. Nginx
-is open source software for web serving, reverse proxying, caching, load balancing, media streaming and the project started with strong focus on maximum performance, high concurrency and low memory usage.
Installation:
Debian/Ubuntu:
sudo apt install nginx
Redhat/CentOS
yum install nginx
Fedora:
dnf install nginx
3.Lighttpd
-is an open-source,lightweight,secure and high performance web server that is optimized for speed-critical environments.
Installation:
Debian/Ubuntu:
sudo apt install lighttpd
Redhat/CentOS
yum install lighttpd
Fedora:
dnf install lighttpd
4.Caddy
-is a powerful, enterprise-ready, open source security-focused web server with automatic HTTPS written in Go.
Installation:
Debian/Ubuntu:
sudo apt install caddy
Redhat/CentOS (enable EPEL repository first)
yum install caddy
Fedora:
dnf install caddy
5.OpenLiteSpeed
-is open source edition of LiteSpeed Web Server enterprise. It is a high-performance and lightweight web server developed by LiteSpeed Technologies.
Installation:
Debian/Ubuntu:
sudo apt install openlitespeed
Redhat/CentOS
yum install openlitespeed
Honorable Mention:
Cherokee
– is an innovative, feature rich, lightning fast and easy to configure open source web server designed for the next generation of highly concurrent secured web applications.
Installation: (it won’t be straightforward as need to do few steps prior to “apt” or “yum” installation)
Debian/Ubuntu:
sudo apt install cherokee
Redhat/CentOS
yum install cherokee