万本电子书0元读

万本电子书0元读

顶部广告

Nginx Troubleshooting电子书

售       价:¥

5人正在读 | 0人评论 9.8

作       者:Alex Kapranoff

出  版  社:Packt Publishing

出版时间:2016-04-01

字       数:163.7万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Investigate and solve problems with Nginx-powered websites using a deep understanding of the underlying principles About 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 way Who This Book Is For The 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 alerts In Detail Nginx 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.
目录展开

Nginx Troubleshooting

Table of Contents

Nginx Troubleshooting

Credits

About the Author

About the Reviewers

www.PacktPub.com

eBooks, discount offers, and more

Why subscribe?

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Downloading the color images of this book

Errata

Piracy

Questions

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

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

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

The try_files directive

Setting up automatic removal from upstream

Configuring the good old SSI

Planning for more complete monitoring

Processing a situation of no traffic

Restarting Nginx properly

Investigating lower than usual traffic

Summary

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

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

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

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

A. Rare Nginx Error Messages

Index

累计评论(0条) 1个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部