current location:Home > Technical Articles > Operation and Maintenance > Nginx

  • How Nginx uses Let's Encrypt to encrypt https
    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 1434 2023-05-12 17:37:13
  • Nginx build https server instance analysis
    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 666 2023-05-12 17:07:13
  • Nginx reverse proxy, cache and cache clearing example analysis
    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 1478 2023-05-12 16:55:21
  • How to configure nginx ingress speed limit
    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 1896 2023-05-12 16:52:06
  • How to install SSL certificate on Nginx server
    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 1159 2023-05-12 16:37:15
  • How to configure Node.js to use Nginx server
    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 1476 2023-05-12 16:25:06
  • How to deploy SSL certificate in Nginx
    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 2117 2023-05-12 16:19:12
  • How to configure wss protocol in nginx
    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 6809 2023-05-12 15:52:12
  • How to add system services to Nginx in CentOS7
    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 1246 2023-05-12 15:25:15
  • How Docker deploys nginx and modifies configuration files
    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 1427 2023-05-12 15:19:13
  • How to configure Nginx SSL certificate to achieve HTTPS access
    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 1260 2023-05-12 15:07:12
  • nginx current limiting and configuration management methods
    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 1183 2023-05-12 14:52:06
  • How does Nginx automatically jump from http to https?
    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 3867 2023-05-12 14:49:06
  • What does nginx mean when 500 internal server error occurs?
    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 5898 2023-05-12 14:40:17
  • How to solve the error when nginx opens php
    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 956 2023-05-12 14:40:11

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!