http://www.ttlsa.com/nginx/
HTTP caching mechanism:
1. The content caching capabilities claimed by the source server. Mainly for HTTP header information to [...]
Read the full text
Category: Nginx Tags: Nginx,web Cache
Nginx SSL Reverse Proxy
January 25, 2015 north of tacitly
Nginx reverse proxy, with a lot of scenes. Nginx Reverse proxy configuration can be found in the following blog content. So, how is thenginx SSL reverse proxy configured ? SSL configuration Please search in the station, here is not tired of the statement.
Modifying the nginx.conf configuration
Read the full text
Category: Nginx Tags: Nginx,ssl, Reverse proxy
Nginx block User Agent
January 13, 2015 north of tacitly
Sometimes it is necessary to prevent some user agents from accessing the site, such as Ab,wget,curl, which requires the use of $http_user_agent variables.
Modify Nginx.conf
if ($http_user_agent ~* (Wget|ab) ) { |
Read the full text
Category: Nginx Tags: Nginx
Nginx from beginner to proficient PDF download (TTLSA)
January 9, 2015 Administrator
Introduction to Nginx from the beginning to the mastery of PDF
Production site: Operational survival time
Ttlsa Author: Mobei, Cheng
Organized by: Donan (qq:305765814)
Website: www.ttlsa.com
Official Weibo: www.weibo.com/ttlsa/
The official QQ group: 39514058, 6690[...]
Read the full text
Category: Nginx Tags: nginx,nginx.pdf,nginx tutorial, Nginx ebook
Nginx Custom Header return information module Ngx_headers_more
November 29, 2014 north of tacitly
I. INTRODUCTION Ngx_headers_more
Ngx_headers_more is used to add, set, and clear header information for input and output. Nginx source code does not contain the module, it needs to be added separately.
The module is an enhanced version of the Ngx_http_headers_module module and provides more useful tools such as resetting or clearing the built-in header information such as conte[...]
Read the full text
Category: Nginx Tags: Add_header,header,headers,nginx,ngx_headers_more
Nginx Configuration SSL bidirectional authentication nginx HTTPS SSL certificate configuration
November 20, 2014 Cheng
1. Installing Nginx
Refer to "Nginx Installation": http://www.ttlsa.com/nginx/nginx-install-on-linux/
If you want to configure multiple HTTPS on a single ip/server, see "Nginx Configure multiple HTTPS hosts on the same IP"
2. Using OpenSSL to implement Certificate Center [...]
Read the full text
Category: Nginx Tags: Linux,nginx,nginx Ssl,ssl
Nginx Log Cutting
November 10, 2014 Cheng
# This script run at 00:00 |
logs_path= "/usr/local/nginx/logs" |
pid=` ps -ef| grep - v grep | grep nginx|gr[......] |
Read the full text
Category: Nginx Tags: Linux,nginx,nginx Log
Nginx Gray-scale publishing based on cookies
November 8, 2014 Cheng
Grayscale Publishing is a way to publish a smooth transition between black and white. AB Test is a grayscale publishing method, let some users continue to use a, some users start with B, if the user has no objection to B, then gradually expand the scope of all users to move to the top. Gray-scale publishing can ensure the stability of the overall system, in the initial gray level can be found, adjust the problem to ensure its impact. [......]
Read the full text
Category: Nginx Tags: Cookies,linux,nginx
Nginx Upstream timed out (110:connection timed out)
October 25, 2014 north of tacitly
In the Nginx error log, there is a large amount of the following information:
Upstream timed out (110:connection timed off) While reading response headers from Upstream
This situation occurs mainly in the two cases of Xiamen:
1. Nginx pro[...]
Read the full text
Category: Nginx Tags: Nginx,upstream
HTTP keepalives
October 21, 2014 north of tacitly
Enabling HTTP keepalives between Nginx and upstream can help provide performance, reduce connection latency, and reduce the use of ports to avoid large traffic situations where the port is exhausted.
The HTTP protocol uses TCP connections to transmit HTTP requests and to receive HTTP responses. HTTP Keepalive allows multiplexing of these TCP connections, thus avoiding the creation of [...]
Read the full text
Category: Nginx Tags: Http,keepalives,nginx
Nginx rewrite URL trailing slash
October 13, 2014 north of tacitly
The netizen asks how to add the upper slash after the URL. By the way, we summarize the rewrite rules for adding slashes and removing slashes for the end of URLs.
1. Add a slash at the end of the URL
This adds a rewrite rule to the virtual host:
rewrite ^(.*[^/])$ $ 1 / permanent; |
For example:
Read the full text
Category: Nginx Tags: Nginx, redirect
Using Nginx as HTTP load balancer
September 28, 2014 north of tacitly
1. Introduction
In many applications, load balancing is a common technique to optimize the use of resources to maximize throughput, reduce latency, and ensure fault tolerance.
You can use Nginx as a very efficient HTTP load balancer to allocate traffic to multiple application servers for improved performance, scalability, and high availability.
2. Load Balancing method
Nginx supports several load balancing mechanisms:
Read the full text
Category: Nginx Tags: Loadbance,nginx, load Balancing
Installing Openresty
September 26, 2014 north of tacitly
Openresty, also known as "Ngx_openresty", is an Nginx-based core Web application server that contains a large number of third-party nginx modules and most system-dependent packages. Openresty is not a branch of Nginx, it is just a package. The main chapters are also spring maintenance.
Why the Openresty?
Openresty allow [...]
Read the full text
Category: Nginx Tags: Nginx,openresty
Nginx implements AJAX cross-domain requests
September 24, 2014 north of tacitly
Ajax requests from one domain to another domain will have cross-domain issues. So how to implement Ajax cross-domain request on Nginx? To enable cross-domain requests on nginx, you need to add the Add_header access-control* directive. As shown below:
add_header 'Access-Control-Allow[......] |
Read the full text
Category: Nginx Tags: Ajax,nginx
Nginx load balancing: from theory to Practice
September 22, 2014 north of tacitly
The application of Nginx load balancing is very wide, and this architecture is used in many scenarios.
The environment is as follows:
192.168.1.100 (Master node) server1192.168.1.109 (slave) server2192.168.1.106 (slave) serve[...]
Read the full text
The above describes the Nginx very detailed a comprehensive description, including the aspects of the content, I hope the PHP tutorial interested in a friend helpful.