current location:Home > Technical Articles > Operation and Maintenance > Nginx
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Daily Programming WeChat Applet Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- How Nginx uses Let's Encrypt to encrypt https
- HTTPS is now the standard for websites. Many services must use https. If you don't use it, the browser may not be very friendly to you. If you don’t want to use a commercial CA key, you can use Let’s Encrypt for encryption. The only disadvantage of using Let’s Encrypt is that it needs to be updated every 3 months. Of course, you can also use automatic updates to handle it. We need to install the plug-in to achieve: obtain the pem key required for SSL encryption. Set certbot to automatically update the secret key. Required prerequisites: Nginx has been installed and the virtual host has been configured. Python has been installed.
- Nginx 1490 2023-05-12 17:37:13
-
- Nginx build https server instance analysis
- Introduction to https https (hypertexttransferprotocoloversecuresocketlayer) is an http channel aimed at security. Simply put, it is a secure version of http. That is, an SSL layer is added under http. The security foundation of https is SSL, so the details of encryption require SSL. It is a urischeme (abstract identifier system) with a syntax similar to the http: system and is used for secure http data transmission. The default port used by https is 443. SSL Certificate Certificate Type Introduction To set up a secure server, create a public and private key pair using the public key. In most cases, sending a certificate request (packaging
- Nginx 729 2023-05-12 17:07:13
-
- Nginx reverse proxy, cache and cache clearing example analysis
- 一.nginx配置#usernobody;worker_processes1;#error_loglogs/error.log;#error_loglogs/error.lognotice;#error_loglogs/error.loginfo;#pidlogs/nginx.pid;events{worker_connections1024;}http{log_formatmain'$remote_addr-$remote_user[$time_local]"$req
- Nginx 1560 2023-05-12 16:55:21
-
- How to configure nginx ingress speed limit
- Starting from the business scenario, during the business development process, we have a requirement: the download service provided through filebrowser needs to be speed limited. For example, when users download files through filebrowser, they need to limit the download rate of each user. Extending from this requirement, the download rate for specific users can also be limited. In order to realize this business requirement, combined with our current technology stack (k8s+nginxingress), it can be achieved by configuring the corresponding nginx parameters. What is a speed limit? Speed limit, as the name suggests, limits the rate. The rate here can be: the frequency with which a single user accesses resources in unit time, or the frequency with which a single IP accesses resources in unit time, or
- Nginx 2019 2023-05-12 16:52:06
-
- How to install SSL certificate on Nginx server
- Install the SSL certificate on the Nginx server and configure nginx1. Download the certificate file 2. Create the cert directory in the conf directory of nginx and copy the certificate file into it. 3. Configure nginx.conf. The complete nginx.conf is as follows: #usernobody;worker_processes1;#error_loglogs/error.log;#error_loglogs/error.lognotice;#error_loglogs/error.loginfo;#pidlogs/nginx.pid;events{worker_c
- Nginx 1335 2023-05-12 16:37:15
-
- How to configure Node.js to use Nginx server
- The flow chart nginx configuration is as follows: http{proxy_cache_path/var/cache/nginxlevels=1:2keys_zone=one:8mmax_size=3000minactive=600m;proxy_temp_path/var/tmp;includemime.types;default_typeapplication/octet-stream;sendfileon;keepalive_timeout65;gzipon; gzip_comp_level6;gzip_varyon;
- Nginx 1555 2023-05-12 16:25:06
-
- How to deploy SSL certificate in Nginx
- A brief introduction to Nginx is the latest high-performance web server. Compared with the traditional Apache server, its performance is improved by more than 10 times, especially under a large number of concurrent client connections. Many large PHP websites use Nginx servers. Although Nginx uses the network I/O model of the Linux 2.6 kernel and epull architecture, it is still relatively similar to Apache in use and is a very good alternative to Apache. SSL certificate introduction SSL certificate is a type of digital certificate, similar to electronic copies of driver's licenses, passports and business licenses. Because it is configured on the server, it is also called an SSL server certificate. An SSL certificate complies with the SSL protocol and consists of a trusted digital certificate
- Nginx 2191 2023-05-12 16:19:12
-
- How to configure wss protocol in nginx
- Requirements: nginx configures websocket protocol connection. (Background, when using a free certificate that only supports a single domain name and supports both the https protocol and the wss protocol, we can configure an nginx to jump according to different paths. ) What I use is a one-year certificate obtained for free from Huawei Cloud (because it only supports a single domain name, different jumps must be made based on the path after the domain name). The project interface is internally 127.0.0.1: 8888/request/ Play is a local socket connection through ws://localhost:28888. Of course, because the domain name wss is used, it needs to be placed on the server ws://yours
- Nginx 6891 2023-05-12 15:52:12
-
- How to add system services to Nginx in CentOS7
- To view services, first check the service status of nginx and enter systemctlstatusnginx. The result is as follows: no relevant services were found. The next step is to add system services. Add system service Add nginx.service in the /usr/lib/systemd/system directory and modify it according to the actual situation. For detailed analysis, please see the article in the reference materials below. The content is as follows [unit]description=nginx-highperformancewebserverdocumentation=http://nginx.org/en/docs/after=network
- Nginx 1308 2023-05-12 15:25:15
-
- How Docker deploys nginx and modifies configuration files
- Just one line of command: dockerrun\--namenginx-health-web-pc\-d-p6800:80\-v/usr/docker/nginx/html:/usr/share/nginx/html\nginx is a joy to run and start. Almost~~~~~At this time, the front end suddenly comes over and says: "You need to add a configuration to your nginx", and by the way, he also tells you: "So-and-so was configured like this before." Of course you can't refuse at this time because you are so competitive, but It still takes some effort to actually configure it. Generally, the configuration is done when docker starts. You only need to mount the directory of the configuration file. It is simple and convenient, but
- Nginx 1504 2023-05-12 15:19:13
-
- How to configure Nginx SSL certificate to achieve HTTPS access
- Background Due to project requirements and security reasons, it is necessary to change the previous http interface access to https access, so an SSL certificate needs to be configured. The architecture of the project is like this: the basic architecture is hard load (readwhere) + soft load (nginx) + tomcat cluster. The question now is where to configure the SSL certificate, directly on the hard load? Or configure it on nginx and tomcat respectively? Or is there any other configuration method? First, I gave up configuring the hard load, and then after searching for information on the Internet, I found that the certificate can be configured only on nginx, which means that nginx uses https for access, and nginx and tomcat use http for connection, so that the game
- Nginx 1349 2023-05-12 15:07:12
-
- nginx current limiting and configuration management methods
- nginx current limit http{limit_conn_zone$binary_remote_addrzone=addr:10m;//$binary_remote_addr means to limit it through the remote_addr flag //zone=addr:10m means to generate a memory area with a size of 10M and a name of addr...server{ location/download/{limit_connaddr1;#Limit the number of concurrencies limit_rate50k;#Limit bandwidth}}Limit the number of concurrent connections $binary_remote_addr: indicates through rem
- Nginx 1263 2023-05-12 14:52:06
-
- How does Nginx automatically jump from http to https?
- https is a more secure version of http. Automatically jumping to https through http can make it easier for users to use the web. There are several ways to complete the jump: 1. Open the http and https servers and let http jump to httpsserver{listen80;listen[::]:80;return301https://$host$request_uri;}server{listen443ssl ;listen[::]:443ssl;ssl_certificatecertificate_file_path;ssl_certificate_
- Nginx 3961 2023-05-12 14:49:06
-
- What does nginx mean when 500 internal server error occurs?
- What does 500internalservererror mean in nginx 1. Nginx500 error (InternalServerError internal server error): 500 error refers to an internal server error, that is, the server encounters an unexpected situation and cannot fulfill the request. Solution to 500internalservererror when nginx occurs 1. Is the disk space insufficient? Use df-k to check whether the hard disk space is full. Clearing up hard drive space can resolve 500 errors. If accesslog is enabled in nginx, it is best to close accesslog when it is not needed. accesslog takes up a lot of hard disk space
- Nginx 6065 2023-05-12 14:40:17
-
- How to solve the error when nginx opens php
- Check whether the Nginx server is compatible with your PHP running environment. Before proceeding to the next step, you need to make sure that the Nginx server is compatible with your PHP running environment. You can run some test scripts to see if the Nginx server and PHP environment work together. If the test script runs normally, it means that the Nginx server is compatible with the PHP environment. Otherwise, you need to follow the next steps to solve this problem. Check if the Nginx server has been configured correctly Properly configuring the Nginx server is the first step to troubleshoot the error. You need to check the Nginx server's configuration file to make sure it is parsing PHP files correctly. Here are some examples of configuration files: location~\.php$
- Nginx 1027 2023-05-12 14:40:11