http://www.ttlsa.com/nginx/
HTTP caching mechanism:
1. The content caching capability declared by the origin server. Mainly for http header information [...]
Read the full text
Category: NginxTags: nginx, web cache
Nginx SSL reverse proxy
January 25, 2015Mobei
Nginx reverse proxy is used in many scenarios. Nginx reverse proxy configuration can be found in this blog. So, how to configure the SSL reverse proxy of nginx? Please search the site for SSL configuration, so I won’t go into details here.
Modify nginx.conf configuration
server { |
listen 443 ssl;[...]
|
NginxTags: nginx, ssl, Reverse proxy
Nginx blocks user agent January 13, 2015Mobei
Sometimes, it is necessary to prevent certain user agents from accessing the website, such as ab, wget, curl, etc., This requires the use of the $http_user_agent variable.Modify nginx.conf
($http_user_agent ~* (Wget|ab) ) {
|
return 403 ;
|
|
($http_u[…]
|
NginxTags: nginx
nginx from entry to master pdf download (TT Produced by LSA) January 2015 9thAdministrator
Introduction to "nginx from entry to mastering PDF"Produced website: Operation and maintenance survival time
TTLSA Author: Mobei, Liang Baikai
Compiler: Donan (QQ: 305765814)
Product website: www.ttlsa.com
Official Weibo: www.weibo.com/ttlsa/
Official QQ group: 39514058, 6690[…]
Read the full text
Category:Nginx Tags: nginx, nginx.pdf, nginx tutorial, nginx e-book
nginx custom header return information module ngx_headers_more November 29, 2014Mobei
1. Introduction to ngx_headers_morengx_headers_more is used to add, set and clear input and output header information. The nginx source code does not include this module and needs to be added separately.
This module is an enhanced version of the ngx_http_headers_module module, providing more practical tools, such as resetting or clearing built-in header information, such as Conte[...]
Read full text
Category:Nginx Tags: add_header, header, headers, nginx, ngx_headers_more
nginx configuration ssl two-way verification nginx https ssl certificate configuration November 20, 2014Liangbaikai
1. Install nginx
Reference inx installation》: http:// www.ttlsa.com/nginx/nginx-install-on-linux/
If you want to configure multiple https on a single IP/server, please see "nginx Configuring Multiple HTTPS Hosts on the Same IP"
2. Using openssl to implement certificate center […]
Read the full textCategory:NginxTags: Linux, nginx, nginx ssl, ssl
nginx log cutting November 10, 2014Liangbaikai
|
# This script run at 00:00
|
|
logs_path= "/usr/local /nginx/logs"
|
pid=` ps -ef| grep - v grep | grep nginx|gr[…]
|
rewrite ^(.*[^/])$ $ 1 / permanent ;
|
For example:
server { |
listen 80 ;[…. .]
|
Read the full text
Category: NginxTags: nginx, Redirect
Using nginx as HTTP load balancing
September 28, 2014 Mobei
1. Introduction
In many applications, load balancing is a commonly used technique to optimize Utilize resources to maximize throughput, reduce wait times, and ensure fault tolerance.
You can use nginx as a very efficient HTTP load balancer to distribute traffic to multiple application servers to improve performance, scalability and high availability.
2. Load balancing method
nginx supports the following load balancing mechanisms:
Read the full text
Category: NginxTags: loadbance, nginx, Load Balancing
Installing OpenResty
September 26, 2014 Mobei
OpenResty, also known as "ngx_openresty", is a core Nginx-based web application server that contains A large number of third-party Nginx modules and most system dependency packages. OpenResty is not a fork of Nginx, it is just a package. Mainly maintained by Zhang Yichun.
Why OpenResty?
OpenResty allows […]
Read full text
Category: NginxTags: nginx, OpenResty
Nginx implements AJAX cross-domain requests
September 24, 2014Mobei
AJAX requests from one domain to another domain will have cross-domain problems. So how to implement ajax cross-domain request on nginx? To enable cross-domain requests on nginx, add_header Access-Control* directives need to be added. As shown below:
location /{ |
add_header 'Access-Control-Allow[...] |
Read the full text
Category: NginxTags: AJAX, nginx
Nginx Load Balancing: From Theory to Practice
September 22, 2014Mobei
Nginx load balancing has a wide range of applications, and this architecture is used in many scenarios.
The environment is as follows:
192.168.1.100 (master node) server1 192.168.1.109 (slave) server2 192.168.1.106 (slave) serve[......]
Read the full text
The above introduces a very detailed comprehensive description of nginx, including all aspects. I hope it will be helpful to friends who are interested in PHP tutorials.