Detailed explanation of common configuration of nginx

1, nginx configuration file structure: ... #Global block events { #events block ...} http #http block{ ... #http Global block server #server block { ... #server Global block location [PATTERN] #location block { ... } location [PATTERN] { ...

Posted by webweever on Wed, 29 Sep 2021 21:52:34 -0700

Linux CentOS7.9/8.4 server installation Docker, Nginx, MySQL

Chapter 1 installing Docker Introduction: 1. What is Dokcer? An open source application container engine allows developers to package their applications and dependency packages into a portable container, and then publish them to any popular Linux machine. Virtualization can also be realized. The container is completely encapsulated on the ...

Posted by r270ba on Tue, 28 Sep 2021 03:06:57 -0700

Detailed tutorial on nginx function construction

1, Access control Authentication access based on user name and password Server configuration vim /usr/local/nginx/conf/nginx.conf Add under the location to be verified, taking the root region as an example location / { root html; index index.html index.htm; #Add the following two lines auth_basic "welcome you here"; auth_basic_us ...

Posted by sawade on Sat, 25 Sep 2021 18:07:10 -0700

2021-09-16 docker + nginx reverse proxy http and tcp

Note: considering the strong portability of docker, this running environment is based on docker. If your nginx is directly installed in the host, the path is different from that inside the container, and you can only refer to the content of the configuration file Test environment: Operating system: centos 7.9 (GUI desktop version and min ...

Posted by brockie99 on Sat, 25 Sep 2021 17:03:13 -0700

Ten minutes to learn nginx

start-up nginx restart nginx -s reopen stop it nginx -s stop Thermal loading ./nginx -s reload Test whether the modified configuration file is normal nginx -t Default profile location /usr/local/nginx/conf/ Adjust the basic configuration of Nginx /usr/local/nginx/conf/nginx.conf Where is the custom Nginx configuration /usr ...

Posted by spectacularstuff on Fri, 24 Sep 2021 22:32:11 -0700

Golang practice record: using gin framework to realize forwarding function: forwarding using nginx

Recently, we need to implement a gadget to forward post requests to the specified back-end service. Because we always want to learn the gin framework, we use this framework to try. It is expected to produce several articles. This paper studies how to test the forwarding tool by using nginx container and back-end service. summary The forward ...

Posted by subkida on Mon, 20 Sep 2021 11:44:38 -0700

Create front-end project under vue-cli4

Upper connection Create front-end projects (routing, vuex and axios applications) under vue-cli4 , this article solves some problems encountered in the coding process. 1. Set global template The global template is used to display all pages according to a certain layout, such as advertisements or operation dials fixed on both sides, and only t ...

Posted by jjbarnone on Sun, 19 Sep 2021 01:48:38 -0700

How to efficiently learn Nginx source code and absorb nutrients?

There are many function points of Nginx, and the new concepts and design ideas involved are not particularly friendly to novices. I suggest learning the Nginx source code through debugging after understanding some basic knowledge of Nginx. The following operations require some gdb debugging knowledge. If you are not familiar with gdb debugging ...

Posted by Arab Prince on Fri, 17 Sep 2021 16:43:10 -0700

Summary of Web playback webcam real-time video streaming (RTSP) schemes

preface The Web side adopts vue framework for development and testingTest only under Windows 10See the tutorial of EasyPlayer.js here RTMP scheme Scheme Description: ffmpeg transfers rtsp video to rtmp video stream, which is played through nginx proxy and web access rtmp protocol. flash support is required Back end: ffmpeg + nginx + nginx ...

Posted by Rai_de on Fri, 17 Sep 2021 15:57:18 -0700

Find "object" through nginx proxy“

preface: 1. Do you want to interact with the front end and back end for the front end and back end separation project? What if you don't learn nginx? Download an nginx, including Windows version and linux version. You can choose it. Let's take the window version as an example.After downloading from the Internet, it looks like the ghost below. ...

Posted by thebay on Thu, 16 Sep 2021 10:34:18 -0700