Book Image

Nginx HTTP Server

By : Clement Nedelcu
Book Image

Nginx HTTP Server

By: Clement Nedelcu

Overview of this book

<p>Nginx is a lightweight HTTP server designed for high-traffic websites, with network scalability as primary objective. With the advent of high-speed Internet access, short loading times and fast transfer rates have become a necessity. This free open-source solution will either serve as full replacement of other software such as Apache, or stand in front of your existing infrastructure to improve its overall speed. However, migrating to Nginx requires some guidance.<br /><br />This book serves as a detailed guide to setting up Nginx in different production situations: as standalone server, as reverse proxy, interacting with applications via FastCGI, and more. In addition, the complete directive reference will be your best friend at all stages of the configuration and maintenance processes.<br /><br />This book is the perfect companion for both Nginx beginners and experienced administrators. For the former, it will take you through the complete process of setting up this lightweight HTTP server on your system and configuring its various modules to get it to do exactly what you need, in a fast and secure way. For the latter, it provides different angles of approach that can help you make the most of your current infrastructure. As the book progresses, it provides a complete reference to all the modules and directives of Nginx. It will explain how to replace your existing server with Nginx or configure Nginx to work as a frontend for your existing server.<br /><br />By the end of this book, you will be geared up to implement Nginx as a web server that will boost the speed of all your web applications.</p>
Table of Contents (17 chapters)
Nginx HTTP Server
Credits
About the Author
About the Reviewers
Preface
Directive Index
Index

Summary


This chapter covered a number of important points. It first made sure that you have everything Nginx requires for compiling. Then this chapter helped us select the proper version branch for our usage—will you be using the stable version or a more advanced yet potentially unstable one? We then downloaded the source and configured the compilation process by enabling or disabling features and modules such as SSL, GeoIP, and more. Following this step, the source was compiled and the application installed on the system in the directory of your choice. We created an init script and modified the system boot sequence to schedule for the service to be started.

From this point on, Nginx is installed on your server and automatically started with the system. Your web server is functional, though it does not yet answer the most basic functionality—serving a website. The first step towards hosting a website will be to establish a configuration file. The next chapter will cover the basic configuration...