Nginx operation booklet

Time:2021-12-8

The common configuration part of nginx configuration is extracted

Create a new file common in the same folder as nginx.conf_ rules.conf

#  proxy_pass  http://27.175.67.297:8000;
proxy_pass  https://wgcent.store.cn; 

Use include directly in nginx.conf

location /wcg/api/order/paymentRequest   {
                rewrite .* /wc/api/orider/tRequest  break; 
                 include common_rules.conf;
        }
        location /wcg/api/order/queryPaymentStatus   {
                rewrite .* /wc/api/order/querStatus  break; 
                 include common_rules.conf;
        }

Nginx operation booklet

Lazy drawing

Rewrite

Nginx operation booklet
Nginx operation booklet
Nginx operation booklet
Nginx operation booklet
Nginx operation booklet
Nginx operation booklet
Nginx operation booklet
Nginx operation booklet
Nginx operation booklet
Nginx operation booklet

The difference between forward proxy and reverse proxy

Nginx operation booklet
Nginx operation booklet
Nginx operation booklet

regular expression

Nginx operation booklet
Nginx operation booklet
Nginx operation booklet
Nginx operation booklet
Nginx operation booklet

Dynamic and static separation

Nginx operation booklet

cache

Nginx operation booklet

polling

Nginx operation booklet

overtime

Nginx operation booklet

proxy_pass

Nginx operation booklet

Add request header

Nginx operation booklet

nginx

Nginx operation booklet

server_name

Nginx operation booklet

Variable parameters

Nginx operation booklet

other

Nginx operation booklet
Nginx operation booklet
Nginx operation booklet
Nginx operation booklet
Nginx operation booklet

Recommended Today

Heavyweight Tencent cloud open source industry’s first etcd one-stop governance platform kstone

​ Kstone open source At the kubecon China Conference held by CNCF cloud native foundation on December 9, 2021,Tencent cloud container tke team released the open source project of kstone etcd governance platform. KstoneIt was initiated by the TKE team of Tencent cloud containerCloud native one-stop etcd governance project based on kubernetes。 The project originates […]