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. switch 2. While Loop 3. Do/W...
Preface Due to the weak typing of JS, loose writi...
It is also very simple to deploy Django projects ...
Table of contents MySQL federated query execution...
1. Background that needs to be passed through CSS...
JavaScript shows and hides pictures, for your ref...
Introduction to kubectl kubectl is a command line...
On a Linux computer, there are two times, one is ...
https base port 443. It is used for something cal...
Preface View is a very useful database object in ...
React originated as an internal project at Facebo...
Table of contents What is a skeleton screen? Demo...
The login interface of WeChat applet is implement...
Table of contents aforementioned VARCHAR Type VAR...
When building a database and writing a program, i...