Nginx
Nginx Configuration Problem Record
· β˜• 1 min read
1. server_name Has No Effect Symptom: Nginx reverse-proxies two applications, and the configuration details are as follows. It turned out that requests to b.chenshaowen.com and a.chenshaowen.com both returned responses from service A. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 server

Etcd, Confd, and Nginx Service Discovery
· β˜• 3 min read
This post mainly explains why the service discovery feature is needed and compares several service discovery tools. It also puts service discovery with Etcd, Confd, and Nginx into practice on CentOS. 1. Service Registration and Discovery 1.1 Why Service Registration and Discovery Are Needed With the rise of microservices, a

Packaging a Django Development Environment with Docker from Scratch (5) Nginx
· β˜• 3 min read
1. Directory Structure 1 2 3 4 5 6 7 8 9 10 11 12 β”œβ”€β”€ django-devops-nginx β”‚ β”œβ”€β”€ Dockerfile β”‚ └── nginx.repo β”œβ”€β”€ django-devops-compose β”‚ β”œβ”€β”€ docker-compose.yml β”‚ β”œβ”€β”€ www β”‚ β”œβ”€β”€ conf β”‚ β”‚ β”œβ”€β”€ nginx.conf β”‚ β”œβ”€β”€ log β”‚ β”‚ β”œβ”€β”€ nginx β”‚ β”‚ β”‚ β”œβ”€β”€ access.log β”‚ β”‚ β”‚ β”œβ”€β”€ error.

Enabling HTTP/2 in Nginx
· β˜• 2 min read
This article mainly covers how to install Nginx from source on Linux and enable HTTP/2, and it also compares the speed of accessing this site over HTTP/1.1 versus HTTP/2.0. 1. Building and Installing Nginx First you need to download Nginx and a few of its dependencies. Zlib compresses data when a web request is transferred, saving bandwidth; PCRE matches URLs with regular expressions for routing and dispatch; OpenSSL or LibreSSL, the secure sockets algorithm library, provides HTTPS support.