: This article mainly introduces a detailed description of nginx. if you are interested in the PHP Tutorial, you can refer to it. Http://www.ttlsa.com/nginx/
HTTP cache mechanism:
1. the content cache capability claimed by the source server. Mainly for http header information [...]
Read the full text
Category: Nginx tags: nginx, web cache
Nginx SSL reverse proxy
January 25, 2015
Nginx Reverse proxy is widely used. For Nginx Reverse proxy configuration, see the following blog. How can I configure the nginx SSL reverse proxy? Search for the SSL configuration in the site.
Modify nginx. conf configuration
Read the full text
Category: Nginx tags: nginx, ssl, reverse proxy
Nginx blocks user proxies
January 13, 2015
Sometimes, you need to prevent some user proxies from accessing the website, such as AB, wget, and curl. This requires the $ http_user_agent variable.
Modify nginx. conf
if ($http_user_agent ~* (Wget|ab) ) { |
Read the full text
Category: Nginx label: nginx
Download nginx from entry to proficient pdf (produced by TTLSA)
January 9, 2015 Administrator
Introduction to nginx from getting started to mastering PDF
Website: O & M survival time
By TTLSA: Mobei and liangbaopen
Organizer: Donan (QQ: 305765814)
Website: www.ttlsa.com
Official Weibo: www.weibo.com/ttlsa/
Official QQ groups: 39514058 and 6690 […]
Read the full text
Classification: Nginx tags: nginx, nginx.pdf, nginx tutorial, nginx ebook
Nginx custom header response module ngx_headers_more
November 29, 2014
1. introduce ngx_headers_more
Ngx_headers_more is used to add, set, and clear input and output headers. The nginx source code does not contain this module and needs to be added separately.
This module is an enhanced version of the ngx_http_headers_module module and provides more practical tools, such as resetting or clearing built-in header information, such as Conte […]
Read the full text
Classification: Nginx tags: add_header, header, headers, nginx, ngx_headers_more
Nginx configuration ssl two-way authentication nginx https ssl certificate configuration
November 20, 2014
1. install nginx
See nginx installation: http://www.ttlsa.com/nginx/nginx-install-on-linux/
If you want to configure multiple https hosts on a single IP address/server, see configuring multiple HTTPS hosts on the same IP address of nginx.
2. use openssl to implement the certificate center [...]
Read the full text
Classification: Nginx labels: Linux, nginx, nginx ssl, and ssl
Nginx log cutting
November 10, 2014
# 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
Classification: Nginx labels: Linux, nginx, and nginx logs
Cookies-based nginx gray release
November 8, 2014
Gray release refers to a smooth transition between black and white. AB test is A gray release method that allows some users to continue using A and some users to use B. If the user has no objection to B, the scope is gradually expanded, migrate all users to B. Gray release ensures the stability of the entire system. problems can be detected and adjusted during initial Gray release to ensure the impact. [……]
Read the full text
Category: Nginx tags: cookies, Linux, and nginx
Nginx Upstream timed out (110: Connection timed out)
October 25, 2014
The Nginx error log contains a large amount of the following information:
Upstream timed out (110: Connection timed out) while reading response header from upstream
This situation mainly occurs in Xiamen in two situations:
1. nginx pro [...]
Read the full text
Category: Nginx tags: nginx, upstream
HTTP Keepalives
October 21, 2014
Enabling HTTP Keepalives between nginx and upstream helps to provide performance, reduce the waiting time for connections, and reduce the occupation of ports to avoid Port depletion when the traffic is high.
HTTP uses a TCP connection to transmit HTTP requests and receive HTTP responses. HTTP Keepalive allows reuse of these TCP connections, thus avoiding […]
Read the full text
Classification: Nginx labels: http, Keepalives, and nginx
Nginx rewrite URL tail slash
October 13, 2014
A user asked how to add a slash after a URL. This section summarizes the rewrite rules for adding and deleting slashes at the end of a URL.
1. add a slash at the end of the URL
Add a rewrite rule to the VM:
rewrite ^(.*[^/])$ $ 1 / permanent; |
For example:
Read the full text
Category: Nginx label: nginx, redirection
Use nginx for HTTP load balancing
September 28, 2014
1. Introduction
In many applications, server load balancer is a common technology used to optimize the utilization of resources to maximize throughput, reduce wait time, and ensure fault tolerance.
Nginx can be used as an extremely efficient HTTP load balancer to distribute traffic to multiple application servers to improve performance, scalability, and availability.
2. Load Balancing method
Nginx supports the following load balancing mechanisms:
Read the full text
Classification: Nginx labels: loadbance, nginx, and server load balancer
Install OpenResty
September 26, 2014
OpenResty, also known as "ngx_openresty", is a core Nginx-based Web application server. it contains a large number of third-party Nginx modules and most system dependent packages. OpenResty is not a branch of Nginx, but a software package. There are mainly chapter Yichun maintenance.
Why is it OpenResty?
OpenResty allows […]
Read the full text
Classification: Nginx labels: nginx and OpenResty
Implement AJAX cross-origin requests using Nginx
September 24, 2014
Cross-origin occurs when AJAX requests from one domain to another. So how can I implement ajax cross-origin requests on nginx? To enable cross-origin requests on nginx, add the add_header Access-Control * command. As follows:
add_header 'Access-Control-Allow[......] |
Read the full text
Category: Nginx tags: AJAX, nginx
Nginx load balancing: From Theory to Practice
September 22, 2014
Nginx server load balancer is widely 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 a comprehensive description of nginx in detail, including some content, and hopes to help friends who are interested in PHP tutorials.