Nginx HTTP Server
Formats:
save 15%!
save 37%!
Free Shipping!
| Also available on: |
|
- Get started with Nginx to serve websites faster and safer
- Learn to configure your servers and virtual hosts efficiently
- Set up Nginx to work with PHP and other applications via FastCGI
- Explore possible interactions between Nginx and Apache to get the best of both worlds
- A step-by-step guide to switching from Apache to Nginx
- Complete configuration directive and module reference
Book Details
Language : EnglishPaperback : 348 pages [ 235mm x 191mm ]
Release Date : July 2010
ISBN : 1849510865
ISBN 13 : 9781849510868
Author(s) : Clement Nedelcu
Topics and Technologies : All Books, Open Source
Table of Contents
Preface
Chapter 1: Preparing your Work Environment
Chapter 2: Downloading and Installing Nginx
Chapter 3: Basic Nginx Configuration
Chapter 4: HTTP Configuration
Chapter 5: Module Configuration
Chapter 6: PHP and Python with Nginx
Chapter 7: Apache and Nginx Together
Chapter 8: From Apache to Nginx
Appendix A: Directive Index
Appendix B: Module Reference
Appendix C: Troubleshooting
Index
Clement Nedelcu
Submit Errata
Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.
Errata
- 4 submitted: last submission 24 Apr 2013Errata type: Technical | Page number: 114 (Page 131 when reading ebook)
Given sentence (at the bottom): "However, if Nginx receives a request for http://localhost/admin/, the path used to retrieve the files is /home/website.com/locked/."
Correct sentence: "However, if Nginx receives a request for http://localhost/admin/, the path used to retrieve the files is /var/www/locked/."
Errata type: Typo | Page number: 125
Correction: The directive type listed (the last directive from the bottom) should be directio and not direction.
Errata type: Technical | Page number: 119
Correction: In the section describing client_body_timeout, about halfway down page 119:
Default value: 60
send_timeout 60;
should read:
Default value: 60
client_body_timeout 60;
Errata type: Typo | Page number: 136
Correction: In the "Search order and priority" at the bottom of page 136, the line:
location /files/ {"
should read
location /files/ {
Sample chapters
You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.
- Download and build Nginx from source along with its dependencies
- Learn the basics of Nginx configuration: syntax, structure, and semantics
- Create virtual host configurations effortlessly
- Discover how to enable, configure, and use all first-party modules
- Establish advanced rewrite rules with the Nginx Rewrite module
- Set up Nginx to work with PHP, Python, and more via FastCGI
- Configure Nginx to work as frontend for your existing HTTP server
- Complete the process of replacing Apache by Nginx
- Follow three practical examples on how to port your Apache rewrite rules
- Find your way through the configuration with the complete detailed directive reference
- Troubleshooting: know where to start looking if something goes wrong
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.
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.
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.
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.
A handy guide to setting up Nginx as a standalone web server or as a reverse proxy, with complete directive and module references
The book includes detailed instructions for each of the processes it describes: downloading and installing the application, configuring and using modules, and much more. It provides a step-by-step tutorial to replace your existing web server with Nginx. With commented configuration sections and in-depth module descriptions, you will be able to make the most of the performance potential offered by Nginx.
By covering both early setup stages and advanced topics, this book will suit web administrators interested in solutions to optimize their infrastructure, whether they are looking into replacing existing web server software or integrating a new tool cooperating with applications already up and running. If you, your visitors, and your operating system have been disappointed by Apache, this book is exactly what you need.

