Linux Server Setup: Part 5 - Web Servers

Updated: September 02, 2010

There are a few key factors to consider when selecting a web server:

1. Performance - speed, load averages, and memory consumption

2. Stability and security

3. Scalability

4. Features

Some web servers are fast and lightweight but may not provide as many features. Others may offer a wide range of features but may not scale well. The following are web servers that work well in most situations and have proven to be reliable for small and large websites. They all have the basic features one would expect, like support for virtual servers and SSL (secure socket layer), as well as static and dynamic web pages. Additionally, each has its unique features that make it ideal for specific types of websites.

Apache (http://httpd.apache.org/) - Apache HTTP Server is a free and open source web server that is, by far, the most widely used and highly regarded on the market. More web servers run Apache than any other, including web servers that run on other operating systems, such as Microsoft's IIS.

One of the features of Apache that makes it a favorite is its ability to support modules, which essentially adds functionality to the core web server. On Linux servers, the administrator can install pre-compiled modules using the distribution's software repository.

Apache is free software released under the Apache License 2.0. It is available in binary form in most Linux repositories. It also runs on a multitude of Unix-like operating systems and Windows.

Ngnix (http://nginx.org/en/)- Pronounced "engine X", this lightweight web server is designed to support heavy loads and still serve high performance sites. Although it runs on far fewer servers than Apache, it runs on a significant number of high-load sites.

Ngnix features load balancing, fault tolerance, gzip compression, and the ability to handle more than 10,000 simultaneous connections. It is free and open source software, released under a 2-clause BSD-like license. It supports FreeBSD, Linux, Solaris, Mac OS X, and Windows.

Lighttpd (http://www.lighttpd.net/) - Another light web server, Lighttpd (pronounced lighty), has a very low memory footprint, small CPU load, and has the ability to take on numerous requests (over 10,000 simultaneous connections) without putting a heavy load on the CPU and RAM.

Because of its lightness and ability to perform well serving high-volume sites, it has drawn the attention of major online ventures, including YouTube, Wikipedia, and Meebo, all of which use Lighttpd on their servers. One of the web server's selling points is its "event-driven architecture", which supports multiple parallel connections, something essential for AJAX-based web applications (i.e. Web 2.0).

Lighttpd is free and open source software released under the revised BSD license.

In addition to these three free and open source options, there are a myriad of other specialized and proprietary commercial web servers on the market, such as Zeus Web Server, Oracle HTTP Server, LightSpeed, and IBM HTTP Server. Although they are less popular, they may be of use to you to fill specifc needs.

Web Server Technology

A web server will typically run as a daemon (system service) under a single application process. That initial process will then spawn child processes that handle virtual servers, individual websites, or even individual requests. As such, a web server could spawn hundreds or even thousands of processes per day, per hour, or even per minute.

For security, child processes normally run as unprivileged users (i.e. nobody) to prevent hackers from gaining access to the server operating system through a back door in the web server. Dynamic web applications can also serve as an added security risk, so a web server may run scripting modules as separate CGI programs, rather than as part of the web server itself.

SSL and TLS are standard on all web servers and facilitate the use of secure transactions via the HTTPS protocol.

Web servers use compression to speed up requests and serve web pages and content using less bandwidth. Gzip compression is a standard method of delivering compressed data.

The standard HTTP port for web servers is port 80, and the standard port for HTTPS is 443; however, most web servers can be configured to run on virtually any port.

A web server can operate a single site on a single IP address (dedicated hosting), multiple sites on a single IP address (shared hosting), or multiple web sites on multiple IP addresses. Through virtualization, it is also possible to run completely independent instances of web server software on the same server.

A web application is actually a web script, series of scripts, or backend program combined with frontend scripts, that runs on top of a web server. Therefore, a web server can run as many web applications as the software and system hardware will support, which is what makes cloud computing attractive to many organizations.

Featured Research
  • Video Conferencing Goes to Court

    Think technology can’t be utilized in the courtroom? Think again. Video Conferencing within the court system can be extremely cost-effective, efficient, and time-saving. Courtrooms can benefit greatly by video conferencing in expert testimonies, translators, witness testimonies, and much more. more

  • Can Gamification Improve Contact Center Performance

    We have all heard the phrase "all work and no play". Well, would you believe us if we were to tell you that by implementing gamification you can INCREASE contact center engagement, morale, and overall performance? Spoiler alert: 89% of contact center employees believe that a point system within their contact center would boost their engagement! more

  • [Infographic] 8 Common Pain Points UC Eliminates

    Every company has moments of frustration, it is when these moments become extended periods of inefficiency, or pain points, where we start to see loss in productivity and employee morale. What truly sets a successful business apart from those of its competitors, is how they take these pain points and use them as opportunities to improve upon procedures and systems to eliminate pain points and move beyond what was the status quo. more

  • Go VoIP and Go Green

    You may be looking to switch to VoIP because of the cost benefits that it will bring your company, but did you know that it is also FAR BETTER than traditional phone systems for the environment as well? With environmental impact being at the forefront of both consumer and business minds, it is essential that business decisions are made now based on economic AND ecological impact. more

  • 10 Steps for Creating an Accurate Call Center Forecast

    While other customer service channels are gaining traction, phone support is still one of the most HEAVILY used customer service communication methods. Now what does this mean for YOUR business? We answer that question and more in our latest paper which discusses the importance of knowing call volumes, peak call times, and industry trends so YOU can accurately staff your call center to handle all your clients demands. more