1. Preface Reverse proxy function Hide server information -> to ensure the security of the internal network, usually the reverse proxy is used as the public network access address, and the web server is the internal network, that is, through nginx configures the external network to access the web server intranet
Category: Nginx
Nginx (“engine x”) is a high-performance HTTP and reverse proxy server, as well as an IMAP/POP3/SMTP server. Nginx was developed by Igor Sysoev for the second most visited site in Russia, Rambler.ru. The first public version 0.1.0 was released on October 4, 2004. It releases the source code in the form of a BSD-like license, which is known for its stability, rich feature set, sample configuration files and low system resource consumption. On June 1, 2011, nginx 1.0.4 was released. Nginx is a lightweight web server/reverse proxy server and email (IMAP/POP3) proxy server, and is issued under a BSD-like protocol. Developed by Russian programmer Igor Sysoev, it is used by the Russian large-scale portal and search engine Rambler (Russian: Рамблер). Its characteristic is that it occupies less memory and has strong concurrency.
NGINX LOCATION Details
Source: https://www.cnblogs.com/xiaoliangup/p/9175932.html
Nginx HTTP configuration mainly includes three Blocks, the structure is as follows:
http {//This is the protocol level
include m
Nginx configuration multiple TLS certificates, as well as TLS SNI
Background The official domain name filed for the original application was approved, and the TLS certificate was also applied for. The temporary domain name and certificate used before are used as
Nginx deeper -Rewrite
Scenario advantages: URL access redirection, compatible support, SEO optimization, background maintenance, traffic forwarding, safe
Syntax:
Syntax: rewrite regex (regex式) r
Nginx load balancing
Nginx Load Balancing Configuration Scenario Nginx The proxy_pass proxy module is used to implement load balancing Core configuration, forward the client request proxy to a set of upstream virtual s
Expires in nginx.conf will cause errors on Ubuntu, but no errors on OSX
My nginx.conf is using local (OSX), but it throws an error on prod (Ubuntu)
Full file: https:// github.com/thomasdane/partywave/blob/master/nginx.conf
But the relevant part is:
#
Introduction to Nginx
The production of Nginx Have you heard of Nginx? Then you must have heard of its “peer” Apache! Nginx is a kind of WEB server like Apache. Based on the REST architecture style, using Uniform Resour
Provide 404 documentation with NGINX relative to the current path
I have the following server blocks:
server {
listen 80;
server_name petpal. co.il;
root /usr/share/nginx/petpal;
index index.php;
location / {
try_files $uri $uri/ @extensionless-php;<
Returns 503 in Nginx to get a POST request
I have a simple configuration file for customizing the 503 error page during maintenance. The relevant part is like this:
The problem is found by Nginx Any request is parsed in a static file.
Nginx – use multiple Docker containers in a single host
I have a physical server running Nginx, MySQL, and serving my PHP website. The server has a multi-core processor with 16 GB RAM. This server can handle a certain amount of Web Traffic.
Now in