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
Table of contents 1. Installation of JDK1.8 under...
Software version and platform: MySQL-5.7.17-winx6...
IMG tag basic analysis In HTML5, the img tag has ...
This article mainly introduces the detailed expla...
Get the current time: select current_timestamp; O...
Preface When we write code, we occasionally encou...
Or write down the installation process yourself! ...
This article shares the MySQL installation and co...
First look at the effect: When the mouse moves ov...
Batch replace part of the data of a field in MYSQ...
Cause: NVIDIA graphics card driver is damaged Sol...
Table of contents User Management Create a new us...
Table of contents 1. What is the life cycle 2. Lo...
Learned ConcurrentHashMap but don’t know how to a...
Background: position: sticky is also called stick...