Nginx Troubleshooting

Packt Publishing Limited
  • 1. Auflage
  • |
  • erschienen am 22. April 2016
  • |
  • 172 Seiten
E-Book | ePUB mit Adobe DRM | Systemvoraussetzungen
978-1-78528-179-2 (ISBN)
Investigate and solve problems with Nginx-powered websites using a deep understanding of the underlying principlesAbout This BookSolve problems with your Nginx-powered websites before your audience notices anythingPeek into the Nginx architecture and gain knowledge that will help you be valuable to you in the long runGain knowledge of different types of problems in a step-by-step wayWho This Book Is ForThe book is for technical specialists who already use Nginx to serve web pages for their users. Whether you are an experienced system administrator or a new professional, this book will help you do your job in the most efficient way.What You Will LearnDetect and investigate problems with your web serversCreate correct and professional configuration filesGet an in-depth understanding of the web server softwareInterpret Nginx log files easily and with actionable insightsMake your websites respond as fast as possiblePrevent problems by setting up proper monitoring and alertsIn DetailNginx is clearly winning the race to be the dominant software to power modern websites. It is fast and open source, maintained with passion by a brilliant team. This book will help you maintain your Nginx instances in a healthy and predictable state.It will lead you through all the types of problems you might encounter as a web administrator, with a special focus on performance and migration from older software.You will learn how to write good configuration files and will get good insights into Nginx logs. It will provide you solutions to problems such as missing or broken functionality and also show you how to tackle performance issues with the Nginx server. A special chapter is devoted to the art of prevention, that is, monitoring and alerting services you may use to detect problems before they manifest themselves on a big scale. The books ends with a reference to error and warning messages Nginx could emit to help you during incident investigations.Style and approach This comprehensive tutorial on Nginx troubleshooting takes an practical approach to guiding you through common issues in Nginx server.
  • Englisch
  • Birmingham
  • |
  • Großbritannien
978-1-78528-179-2 (9781785281792)
1785281798 (1785281798)
weitere Ausgaben werden ermittelt
Alex Kapranoff is an established IT professional with more than 20 years of experience in roles ranging from a database developer to the CTO of a social search engine start-up to an infrastructure manager of a huge web application with hundreds of millions of users. His background allows him to be more on the developer side of things, and he is happy to share some of that perspective with fellow system administration specialists.
  • Cover
  • Copyright
  • Credits
  • About the Author
  • About the Reviewers
  • Table of Contents
  • Preface
  • Chapter 1: Searching for Problems in Nginx Configuration
  • Introducing basic configuration syntax, directives, and testing
  • Simple directives
  • Multiline directives
  • Include directive
  • Testing Nginx configuration
  • The default configuration directory layout
  • A quick example of modifying the MIME types registry
  • Default nginx.conf
  • The http directive
  • Common mistakes in configuration
  • Semicolons and newlines
  • File permissions
  • Variables
  • Regular expressions
  • Summary
  • Chapter 2: Searching for Problems in Log Files
  • Configuring Nginx logging
  • Logging POST requests
  • Conditional logging
  • Logging big request bodies
  • Creating infrastructure around logs
  • Configuring log rotation
  • Working with a lot of log data
  • Reading logs
  • Error log record
  • Summary
  • Chapter 3: Troubleshooting Functionality
  • Processing a complain
  • Rolling back
  • Keeping Nginx configuration under source control
  • Keeping a case journal
  • Performing the simplest test
  • Performing the Internet connection test
  • Testing the general HTTP response traffic
  • Detecting a lying application
  • Working around an integration failure
  • Planning for more complete monitoring
  • Processing a situation of no traffic
  • Restarting Nginx properly
  • Investigating lower than usual traffic
  • Summary
  • Chapter 4: Optimizing Website Performance
  • Why Nginx is so fast?
  • Optimizing individual upstreams
  • Optimizing static files
  • Optimizing PHP backends
  • Java backends
  • Optimizing Python and Ruby backends
  • Optimizing Perl backends
  • Using thread pools in Nginx
  • The caching layer of Nginx
  • Emitting caching headers
  • Caching in Nginx upstream modules
  • Caching static files
  • Replacing external redirects with internal ones
  • Summary
  • Chapter 5: Troubleshooting Rare Specific Problems
  • Security warnings
  • Domain name mismatch
  • Expired certificates
  • Insecure warnings for valid certificates
  • The mixed - content warning
  • Building a secure proxy for the external content
  • Solving problems with cache
  • Obsolete pages and VirtualBox
  • Apache migration problems
  • Solving problems with WebSockets
  • Showing a file upload progress bar
  • Solving the problem of an idle upstream
  • Summary
  • Chapter 6: Monitoring Nginx
  • Using ngxtop
  • Getting statistics from http_stub_status
  • Monitoring Nginx with Munin
  • Configuring alerts
  • Getting more status data from Nginx
  • Using Nginx Plus alternatives
  • nginx-module-vts
  • Luameter
  • nginx-lua-stats
  • The upsteam_check module in tengine
  • The requests/sec patch by Catap
  • The Ustats module
  • Summary
  • Chapter 7: Going Forward with Nginx
  • System administration
  • Linux/Unix operating system as a whole
  • Modern Internet protocols
  • Specific backend software used in your company
  • Modern cloud platforms
  • Automation
  • Software development
  • Summary
  • Appendix: Rare Nginx Error Messages
  • Index

Dateiformat: EPUB
Kopierschutz: Adobe-DRM (Digital Rights Management)


Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).

Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions (siehe E-Book Hilfe).

E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)

Das Dateiformat EPUB ist sehr gut für Romane und Sachbücher geeignet - also für "fließenden" Text ohne komplexes Layout. Bei E-Readern oder Smartphones passt sich der Zeilen- und Seitenumbruch automatisch den kleinen Displays an. Mit Adobe-DRM wird hier ein "harter" Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.

Weitere Informationen finden Sie in unserer E-Book Hilfe.

Download (sofort verfügbar)

24,93 €
inkl. 19% MwSt.
Download / Einzel-Lizenz
ePUB mit Adobe DRM
siehe Systemvoraussetzungen
E-Book bestellen

Unsere Web-Seiten verwenden Cookies. Mit der Nutzung dieser Web-Seiten erklären Sie sich damit einverstanden. Mehr Informationen finden Sie in unserem Datenschutzhinweis. Ok