Nginx Troubleshooting
Book information
Description
Cover ; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; 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.;Investigate and solve problems with Nginx-powered websites using a deep understanding of the underlying principlesAbout This Book Solve problems with your Nginx-powered websites before your audience notices anything Peek into the Nginx architecture and gain knowledge that will help you be valuable to you in the long run Gain 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 Learn Detect and investigate problems with your web servers Create correct and professional configuration files Get an in-depth understanding of the web server software Interpret Nginx log files easily and with actionable insights Make your websites respond as fast as possible Prevent 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. Cover Copyright Credits About the Author About the Reviewers www.PacktPub.com 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 failurePlanning 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 onesSummary 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 MuninConfiguring 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.
Similar books
Nginx Troubleshooting
2016 · PDF
DIY Hydroponic Gardening for Beginners: A Step-By-Step Guide to Hydroponics Gardening, Basics of the System and How to Build Your Indoor and Outdoor Garden. Grow Fresh Vegetables, Herbs, and Fruit!
2020 · EPUB
Natural & Permanent Cure To Erectile Dysfunction: The Gateway To A Healthy, Happy & Pleasurable Sex Life With Natural Herbs!
2020 · EPUB
Comment fabriquer son masque facial et son désinfectant: Un guide complet pour fabriquer votre masque facial et votre désinfectant pour les mains à la ... ses produits d'entretien) (French Edition)
2020 · EPUB
Python for Data Science: Comprehensive Guide to Data Science with Python
2021 · AZW
Data Visualization Guide: Clear Introduction to Data Mining, Analysis, and Visualization
2021 · AZW
START YOUR OWN COACHING BUSINESS:
2020 · AZW3
Python Data Analysis: Comprehensive Guide to Data Science, Analytics and Metrics with Python
2020 · AZW3