1: Prepare https certificatehttps certificate: I received a one-year free https certificate from Huawei. Download Certificate We are configuring nginx certificate, so just take the certificate in the nginx file 2: Prepare nginx ssl moduleMy path is: usr/local/nginx Enter the nginx installation directory: usr/local/nginx
Check whether there is an SSL module. The following figure shows that it is not installed. Install the ssl module: Generally, there is no SSL module. Next, enter your unzipped nginx directory. Note that this is not the nginx installation directory, but the unzipped directory. After entering the directory, enter
Then execute:
After the above operations are completed, the objs folder will appear in your directory, and the nginx file will exist in the folder, as shown in the figure: Replace the nginx file in this directory with the one in the installation directory sbin:
After replacement, start keepalive and start nginx Check whether the installation is successful
If the following appears, SSL is installed successfully. 3: Configure SSL certificateCreate a cert directory in the Nginx installation directory and copy server.key and server.crt to the cert directory of nginx. Configure the nginx.conf file in the nginx installation directory
4: Browser https protocol access, if the access is successful, https configuration is successful.Huawei's official website also has configuration documents This is the end of this article about the implementation of Nginx configuration https. For more relevant Nginx configuration https content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! |
<<: How to display TIF format images in browser
>>: A complete guide to some uncommon but useful CSS attribute operations
This article shares the specific code of Vue to a...
mysql obtains statistical data within a specified...
Here is an introduction to changing the password ...
Need to know how many days there are before an im...
This article does not introduce anything related ...
1. Overview In the daily operation and maintenanc...
Table of contents 1. The concept of filter 1. Cus...
Achieve resultsImplementation Code html <input...
The first step is to check the version number and...
Solve the problem that the vue project can be pac...
1. Deploy nginx service in container The centos:7...
The vue project implements an upgraded version of...
I believe that people who have experience with Re...
Preface The location in the server block in the N...
This article example shares the specific code for...