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. Database master-slave classi...
Target Display one of the data in the iostat comm...
Demand background: Insert GIF dynamic images into...
A jQuery plugin every day - stacked menu, for you...
I have never been able to figure out whether the ...
1. Implementation ideas The purpose of interface ...
*Create a page: two input boxes and a button *Cod...
Table of contents Integrity constraints Definitio...
In CSS3, the transform function can be used to im...
1. The role of brackets 1.1 Square brackets [ ] W...
The topic I want to share with you today is: &quo...
CSS: Copy code The code is as follows: *{margin:0;...
Use regular expressions to determine the IE browse...
Seeing the recent popular WeChat tap function, I ...