The best software to implement a Web server it is certainly Apache. It is the package par excellence that is used in most of the GNU / Linux servers with the aim of creating this type of services in which to upload content. But it is not the only project for this, in fact, there are some very interesting that are good open source alternatives.
Another of the best known after Apache is Nginx, but there are even more. Therefore, in this article I will show all the variety you have at your disposaln if you want to set up your own web server. Each has its advantages and disadvantages, as is the case with all projects. So you should evaluate which one is the best for you according to your needs ...
Some alternatives you have to mount a web server on GNU / Linux:
- Apache HTTP Server: it is one of the most powerful and one of the most used in the whole world. In DEB distros it is usually called the apache2 package, while in RPMs it is known as httpd. It is open source and free, developed under the Apache Software Foundation and under the Apache v2 license. It was launched in 1995 and since then it has achieved a 37% share of the existing websites (many of them quite famous). It is written in C language and is highly customizable thanks to its modules that extend its capabilities. In addition, it supports protocols such as HTTP, HTTP / 2 and HTTPS, over IPv4 and IPv6.
- Nginx Web Server: Pronounced as "engine-x" and it is also open source, high performance, robust, capable of load balancing, and so on. It was created in 2004 by Igor Sysoev and little by little it has become the most used alternative after Apache, with a share of 31% among which are websites such as LinkedIn, Adobe, Xerox, Facebook, Twitter, etc.
- Lighttpd Web Server: As its name suggests, this open source project is specially designed to be lightweight. Ideal for applications where speed is needed. Unlike Apache and Nginx, it is very small at only 1MB and requires little CPU and memory resources. It is under BSD license and has the ability to support HTTP, compression, SSL / TLS, etc. It has modules to extend its functionalities.
- Apache Tomcat: is an open implementation written in Java under Apache license. Ideal for developers developing Java-based apps. It is not an ordinary web server like the ones above, but for Java servlet.
- OpenLiteSpeed Web Server- Another open-source project designed to be fast, simple, secure, and streamlined. Based on LiteSpeed Enterprise Web Server, but with an essential repertoire of functions compared to that edition. It has a friendly WebAdmin GUI, and is capable of running a wide spectrum of Perl, Python, Ruby, and Java scripts. Of course, it supports IPv4, IPv6, and SSL / TLS in various versions (1.0 to 1.3).
- Hiawatha Web Server: web server written in C language, lightweight and secure. Especially for those looking for speed, security and ease of use. It is very safe against XSS and SQL Injection attacks. In addition, it allows server monitoring with a special tool.