Advanced Linux Networking
As with most types of server, there are several Web servers available for Linux. These servers range from exotic and specialized programs to generalist tools. Some programs are small and support just a limited set of options; others are large packages and are loaded with features. Some of the more noteworthy Linux Web server options include the following:
If you have some particularly exotic requirements, you may be able to find a Web server to fit the bill; people have written Web servers for various specialized or just plain strange needs. Doing a Web search may turn up some useful leads. As a general rule, Apache is a good choice for a Web server because of its popularity and the fact that it ships with all major Linux distributions. Small sites, or those concerned with resource use, might want to look into a slimmer Web server, such as thttpd . If you simply want to run a low- traffic site that doesn't use Apache's more advanced features, such an approach might be reasonable if the slimmer server is easy to install, configure, and use. Because Apache is so common, though, it's usually the easier choice, despite being far more capable than you might need. Extremely high-performance sites might benefit from kernel Web server enhancements, such as those provided by kHTTPd. Using such a server, you can serve more requests on a single computer, or use a computer with weaker hardware than you might otherwise require. Similarly, even user -space servers such as thttpd and Zeus might be able to squeeze more performance out of your hardware. In many cases, though, the bottleneck in Web server performance is the Internet connection, not the Web server computer or software. More efficient software won't help if your site is too popular for your Internet connection. If that's the case, you'll need to reduce the bandwidth requirements of your Web sites (say, by reducing graphics), upgrade your Internet connection, or move your site to a Web hosting or co-location service with better connectivity than you have locally. If you opt to use a Web server other than Apache, this chapter may be useful in that some of the capabilities of your server may be similar to those of Apache, and the configuration features may be similar in a broad sense. The specifics of how you handle a configuration file will be dissimilar, however. |