Article Tags
How to configure nginx default site

How to configure nginx default site

Configure the default site server{listen80default;} When multiple virtual hosts are created on an nginx service, it will be searched from top to bottom by default. If the virtual host cannot be matched, the content of the first virtual host will be returned. If you want to specify one When setting the default site, you can place the virtual host of this site at the location of the first virtual host in the configuration file, or configure listendefault on the virtual host of this site.

May 22, 2023 pm 09:01 PM
nginx
How to solve the problem that NGINX reverse proxy returns 405 for POST request of HTML page

How to solve the problem that NGINX reverse proxy returns 405 for POST request of HTML page

实现如下:server{listen80;listen443ssl;server_namenirvana.test-a.gogen;ssl_certificate/etc/nginx/ssl/nirvana.test-a.gogen.crt;ssl_certificate_key/etc/nginx/ssl/nirvana.test-a.gogen.key;proxy_connect_timeout600;proxy_read_timeout600;proxy_send_timeout600;c

May 22, 2023 pm 07:49 PM
html post nginx
How to add account and password verification in nginx

How to add account and password verification in nginx

nginx adds account and password authentication server{location/{auth_basic"pleaseinputuser&passwd";auth_basic_user_filekey/auth.key;}}. There are many services accessed through nginx, but they do not provide account authentication functions. You can use the authbase account password authentication provided by nginx. To implement, you can use the following script to generate the account password #catpwd.pl#!/usr/bin/perlusestrict;my$pw=$ARGV[0];printcrypt

May 22, 2023 pm 07:46 PM
nginx
How to use Nginx proxy to access the Internet

How to use Nginx proxy to access the Internet

http proxy configuration#Forward proxy Internet server{listen38080;#Resolution domain name resolver8.8.8.8;location/{proxy_pass$scheme://$http_host$request_uri;}}Configure the proxy ip and port in the browser, and then access http: //www.ip138.com, you can find that the ip has changed, indicating that it has taken effect. However, the https website cannot be opened. This is because the native nginx only supports http forward proxy. In order for nginx to support https forward proxy, you can call ngx_http_proxy_connect_

May 22, 2023 pm 07:35 PM
nginx
What are the basic concepts and principles of Nginx

What are the basic concepts and principles of Nginx

1. The basic concept of Nginx (enginex) is a high-performance HTTP and reverse proxy web server, which also provides IMAP/POP3/SMTP services. Its characteristics are that it occupies less memory and has strong concurrency capabilities. In fact, nginx's concurrency capabilities perform better among web servers of the same type. Users of nginx websites in mainland China include: Baidu, JD.com, Sina, NetEase, Tencent, Taobao, etc. Nginx is specially developed for performance optimization. Performance is the most important consideration of the server. The implementation pays great attention to efficiency and can withstand the test of high load. It is reported that it can support up to 50,000 concurrent connections. Nginx can not only be used as a reverse proxy to achieve load balancing; it can also be used as a forward proxy for Internet access, etc.

May 22, 2023 pm 06:40 PM
nginx
How to install and deploy Nginx in Centos6.5 64-bit

How to install and deploy Nginx in Centos6.5 64-bit

1. Introduction to nginx nginx is a web server that can also be used for load balancing and reverse proxy. The most commonly used one at present is load balancing. 2. nginx installation 1. Download nginx and related components. The Linux system is centos6.564. I directly switch to the root user to install and enter the user directory to download the program and download related components [root@localhostsrc]#wgethttp://nginx.org/download /nginx-1.10.2.tar.gzOmit installation content...[root@localhostsrc]#wgethttp://www.openssl

May 22, 2023 pm 06:38 PM
CentOS nginx
Analysis of nginx shared memory mechanism examples

Analysis of nginx shared memory mechanism examples

1. Use the example nginx instruction to declare shared memory: proxy_cache_path/users/mike/nginx-cachelevels=1:2keys_zone=one:10mmax_size=10ginactive=60muse_temp_path=off; here only one declared name is one, and the maximum available memory is 10g of shared memory. The meaning of each parameter here is as follows: /users/mike/nginx-cache: This is a path parameter that specifies the storage location of the files cached in the shared memory. The reason why the file is generated here is that for the upstream service

May 22, 2023 pm 05:13 PM
nginx
How to install Nginx-RTMP streaming server on Ubuntu14

How to install Nginx-RTMP streaming server on Ubuntu14

One: rtmprtmp streaming media protocol is a set of real-time audio and video transmission protocols developed by Adobe; Two: nginx-rtmpnginx-rtmp is an rtmp service module based on nginx, open source, free Three: Installation process on ubuntuserver14 1. First download and install nginx and nginx-rtmp compilation dependency tool sudoapt-getinstallbuild-essentiallibpcre3libpcre3-devlibssl-dev2. Create a working directory and switch to the working directory mkdir~/workingcd~/working3. Download nginx

May 22, 2023 pm 04:12 PM
Ubuntu nginx rtmp
How to use nginx proxy map as cache to solve cross-domain problems

How to use nginx proxy map as cache to solve cross-domain problems

1. Error conditions //Use openlayers to load the sky map varlayer=newol.layer.tile({source:newol.source.xyz({//crossorigin:'anonymous',//Whether to request a cross-domain operation url:url/ /Tian map address})}); If the crossorigin attribute is not used, cross-domain problems will not occur, and generally this parameter will not be set. The usage scenario of this parameter is as described on the official website: thecrossoriginattributeforloadedimages.note

May 22, 2023 pm 03:58 PM
nginx
How to run nginx in Docker and mount the local directory to the image

How to run nginx in Docker and mount the local directory to the image

1. Pull the image dockerpullnginx from hup. 2. Create the directory to be mounted: mkdir-p/data/nginx/{conf, conf.d, html, logs} 3. You must first have a configuration file to start the container 3.1vim/data/conf/nginx. confusernginx;worker_processes1;error_log/var/log/nginx/error.logwarn;pid/var/run/nginx.pid;events{worker_connections1024;}http{includ

May 22, 2023 pm 03:43 PM
Docker nginx
Location matching and rewrite jump methods in Nginx

Location matching and rewrite jump methods in Nginx

1. Rewrite jump to implement Nginx: The ngx_http_rewrite_module module supports URL rewriting and if condition judgment, but does not support else jump: jump from one location to another location, the loop can be executed up to 10 times, and nginx will return after exceeding 500 error PCRE support: perl compatible regular expression syntax rule matching rewrite module set command: create a new variable and assign a value to it 2. Rewrite execution sequence ① Execute the rewriter command in the server block ② Execute location matching ③ Execute the selected rewrite command in location 3.

May 22, 2023 pm 03:25 PM
nginx location rewrite
How to solve the problem of 404 when Nginx configures React project

How to solve the problem of 404 when Nginx configures React project

Code: location/demo{rootE:/;indexindex.htmlindex.htm;} There is a problem with this configuration, it can only be accessed via http://localhost/demo/. If you want to access other interfaces inside such as http://localhost/demo/page1, you will get a 404 page not found. But during development, there was indeed no problem and it could be accessed, so I thought, do I have to use node for the project? No, maybe it’s because I don’t know how to configure it. The solution was finally found. I found an extra line added in other people's nginx.config. location/

May 22, 2023 pm 03:19 PM
React nginx
What is the method of nginx load balancing configuration?

What is the method of nginx load balancing configuration?

[root@localhost~]#vimnginx.confusernginx;worker_processes1;error_log/var/log/nginx/error.logwarn;pid/var/run/nginx.pid;events{worker_connections1024;}http{upstreampools{server10.10.0.110:8080weight=1;server10.10.0.110:8081weight=1;}server{listen80;se

May 22, 2023 pm 02:16 PM
nginx
How to install and configure nginx and PHP under CentOS7

How to install and configure nginx and PHP under CentOS7

Installation and configuration of nginx and PHP under CentOS7 Download Nginx 1. Create a new folder /home/soft/ on the server; 2.cd/home/soft/=>Execute the command to download Nginxwgethttp://nginx.org/download/nginx- 1.7.4.tar.gz; 3. Unzip the downloaded compressed package to /opt/software/=>tar-zvxfnginx-1.7.4.tar.gz-C/opt/software/; 4.cd/opt/software /nginx-1.7.4/=&gt

May 22, 2023 pm 01:52 PM
PHP nginx centos7

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 Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

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

Hot Topics

Java Tutorial
1665
14
PHP Tutorial
1269
29
C# Tutorial
1249
24