search
Article Tags
Nginx
How to deploy your own django project with nginx+uwsgi

How to deploy your own django project with nginx+uwsgi

Step 1: Change the source. Enter the command to replace the Ubuntu download source sudonano/etc/apt/sources.list. Replace all the following files with the original files. I am using the Alibaba source here. You can also change to other sources. debhttp://mirrors.aliyun.com/ubuntu/bionicmainrestricteddebhttp://mirrors.aliyun.com/ubuntu/bionic-updatesmainrestricteddebhttp://mirrors.aliyun.com/ubuntu/bionicunive

May 12, 2023 pm 10:10 PM
nginxdjangouwsgi
How to configure Nginx timeout timeout

How to configure Nginx timeout timeout

keepalive_timeouthttp has a keepalive mode, which tells the webserver to keep the TCP connection open after processing a request. If it receives other requests from the client, the server will use this unclosed connection without establishing another connection. httpkeep-alive, every request on the web page is http (pictures, css, etc.), and to open an http request, you must first establish a tcp connection. If a page needs to open and close a tcp connection for each request, it will become a resource. The waste of keepalive_timeout is that when an http request is completed, its tcp connection will remain

May 12, 2023 pm 10:07 PM
nginxtimeout
How to implement kibana login authentication through Nginx reverse proxy

How to implement kibana login authentication through Nginx reverse proxy

Install the ApacheHttpd password generation tool $yuminstallhttpd-tools-y to generate the Kibana authentication password $mkdir-p/usr/local/nginx/conf/passwd$htpasswd-c-b/usr/local/nginx/conf/passwd/kibana.passwdUserrenwolecomGN5SKorJAddingpasswordforuserUserrenwolecom configure Nginx reverse Add the following content to the proxy in the Nginx configuration file (or include it in a new configuration file): $vim/us

May 12, 2023 pm 10:01 PM
nginxkibana
How to implement nginx front-end distribution based on $remote_addr

How to implement nginx front-end distribution based on $remote_addr

The requirements are as follows: There are multiple servers under the domain name. Now we are testing for a certain region. Let IP users in a certain region only access a certain server and do the test separately. If there are no problems, update them all; if there are problems, the impact will be small. Find problems in time and solve them; Solution: Use the nginx module to configure matching rules on the front-end load balancing forwarding machine; nginx configures vhost, in the location section under the domain name, add a piece of code. If $remote_addr matches the ip, forward it to abc_test_server;server{listen80;server_nameabc.com.cn;access_log/dev/

May 12, 2023 pm 10:01 PM
nginx
How to solve the conflict between nginx and backend port

How to solve the conflict between nginx and backend port

Problem: When I started the development environment of the Alice management system, I found that all interfaces in the background all generated 404 errors during the first request, but the second request successfully located the problem. I checked the nginx error log and found the following error, so I mistakenly thought The error occurred because the file in the html folder could not be written due to insufficient permissions. So after opening the permissions, I found that it still didn't work. After searching on Google, I still couldn't find a solution. I put it aside for the time being, and when I tried to find the error again the next day, I accidentally opened port 8081. When you accessed localhost:8081 and 127.0.0.1:8081, the contents were actually different. At that time, I realized that there was a port conflict, so I opened the file and found the conf of nginx.

May 12, 2023 pm 09:52 PM
nginx
How to implement Nginx dynamic and static separation configuration

How to implement Nginx dynamic and static separation configuration

1. Overview 1.1 The difference between dynamic pages and static pages Static resources: When users access this resource multiple times, the source code of the resource will never change. Dynamic resources: When a user accesses this resource multiple times, the resource's source code may undergo changes. 1.2 What is dynamic and static separation? Dynamic and static separation allows dynamic web pages in dynamic websites to distinguish constant resources from frequently changing resources according to certain rules. After dynamic and static resources are split, we can separate them according to the characteristics of static resources. It does caching operations, which is the core idea of ​​static website processing. The simple summary of dynamic and static separation is: the separation of dynamic files and static files. Pseudo-static: If the website wants to be searched by search engines, dynamic page static technology such as freemarker and other template engine technologies 1.

May 12, 2023 pm 09:25 PM
nginx
How to install Nginx+PHP under Windows system

How to install Nginx+PHP under Windows system

Step 1. Download Nginx. First, you need to download the Nginx installation package from the official website of Nginx. You can visit http://nginx.org/ or click here directly to download the latest version. After downloading, extract it to a local directory, such as D:\nginx. Step 2. Download PHP. Then you need to download the PHP installation package from the official website of PHP. You can visit https://www.php.net/ or click here directly to download the latest version. Select the Windows version of the ZIP package to download. After downloading, extract it to a local directory, such as D:\php. Step 3. Configure Nginx and PHP Next you need to configure Nginx and PHP. Find Ng first

May 12, 2023 pm 09:16 PM
WindowsPHPnginx
How to adjust Nginx server for OpenSSL security vulnerability

How to adjust Nginx server for OpenSSL security vulnerability

1. Overview Currently, openssl vulnerabilities have been exposed, which will leak private information. There are many machines involved and the environments are very different, resulting in different repair solutions. Many servers use nginx to statically compile openssl and directly compile openssl into nginx. This means that simply upgrading openssl will have no effect. nginx will not load the external openssl dynamic link library. nginx must be Recompiling can cure it. 2. Identify whether nginx is statically compiled. The following three methods can confirm whether nginx is statically compiled openssl. 2.1 Check the nginx compilation parameters. Enter the following command to check the compilation of nginx.

May 12, 2023 pm 08:55 PM
nginxopenssl
How does Nginx-rtmp realize the real-time streaming effect of live media?

How does Nginx-rtmp realize the real-time streaming effect of live media?

0. Preface During this time, I am building an ipcamera project server. For video point-to-point calls, the client will view the real-time audio and video stream on the device. In order to save traffic, penetration is through p2p. But due to the reasons of NAT equipment and the exhaustion of ipv4. Some devices are unable to transmit live streams point-to-point. So server forwarding is required. Here, in order to quickly implement the prototype, we also refer to the current mainstream streaming media protocols. I found that many use the rtmp protocol. The picture below is the overall design diagram. In order to integrate multiple platforms, we will build our own rtmp streaming media server and use the rtmp streaming media service of cloud vendor saas. However, because sometimes some non-streaming media data is transmitted and some binary files need to be transmitted, it will

May 12, 2023 pm 08:43 PM
nginxrtmp
How to optimize nginx under Linux system

How to optimize nginx under Linux system

Introduction to nginx: Nginx Nginx (enginex) is a high-performance HTTP and reverse proxy web server. Nginx is a lightweight web server/reverse proxy server. As a rising star, Nginx’s charm has attracted many people. into his arms. The configuration is simple and the implementation principle is simple. There's nothing better than doing a load balancing thing. Specific method to optimize nginx in Linux system 1. Optimize Nginx concurrency [root@proxy~]#ab-n2000-c2000http://192.168.4.5/Benchmarking192.168.4.5(bepatient)so

May 12, 2023 pm 08:34 PM
Linuxnginx
How to use nginx+tomcat to separate static and dynamic pages

How to use nginx+tomcat to separate static and dynamic pages

Experimental environment: windows experimental tools: nginx, tomcat. Installing nginx under windows is very simple. Go to the official website to download the compressed package, decompress it, and double-click the nginx.exe program in the decompressed directory. Then enter localhost in the browser and the following picture will appear, which means nginx is already working. The workflow of nginx is: Externally, nginx is a server. All requests are first requested to nginx, and then nginx distributes the request to the intranet to tomcat. Then tomcat processes the request and sends the data to nginx, and then the data is sent to nginx by nginx. nginx is sent to the user, and the whole process feels to the user that nginx is

May 12, 2023 pm 08:34 PM
nginxtomcat
How to configure nginx monitoring in zabbix

How to configure nginx monitoring in zabbix

Case: zabbix configures nginx monitoring 1. Modify the configuration file vim/usr/local/nginx/conf/nginx.conflocation/nginx_status{stub_status;} Description: nginx_status custom field, access address (example: 192.168.169.131/nginx_status) stub_status fixed Parameter #Restart nginx./nginxreload Browser access status description: ActiveconnectionsNginx is processing the number of active links; important serverNginx starts to the present

May 12, 2023 pm 08:31 PM
nginxzabbix
How to add second-level subdomain names in batches with Nginx

How to add second-level subdomain names in batches with Nginx

Copy the code as follows: if($host~*(.*)\.(.*)\.(.*)){set$subdomain$1;}location/{roothtml/$subdomain;indexindex.htmlindex.php;} The "~*" above means that it is not case-sensitive, and then it matches any URL of the "xxx.xxx.xxx" type. In the end, it is a tragedy, not only does it match "www.yourdomian.com" but even "What the fuck.$!" @.com" URLs also match. Um

May 12, 2023 pm 08:25 PM
nginx
How to solve the problem of Nginx auto-starting in Centos7

How to solve the problem of Nginx auto-starting in Centos7

Regarding setting nginx to start automatically at boot in centos7, we can solve the problem by writing a self-start shell script at boot. Test environment operating system: centos764-bit 1611nginx version: 1.11.10 Configuration parameters during native nginx installation./configure\--prefix=/usr/local/nginx\--pid-path=/usr/local/nginx/logs /nginx.pid\--lock-path=/var/lock/nginx.lock\--error-log-path=/var/log/nginx/err

May 12, 2023 pm 08:16 PM
nginxcentos7

Hot tools Tags

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

vc9-vc14 (32+64 bit) runtime library collection (link below)

vc9-vc14 (32+64 bit) runtime library collection (link below)

Download the collection of runtime libraries required for phpStudy installation

VC9 32-bit

VC9 32-bit

VC9 32-bit phpstudy integrated installation environment runtime library

PHP programmer toolbox full version

PHP programmer toolbox full version

Programmer Toolbox v1.0 PHP Integrated Environment

VC11 32-bit

VC11 32-bit

VC11 32-bit phpstudy integrated installation environment runtime library

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use