You can apply for opening after purchase and payment.

Fill in your personal information and bind your domain name,

Perform resolution configuration in the domain name as required,

Verification by

Pending approval…

Approved OK!

Copy the private key and public key to the server.

The nginx.config file configures the proxy to the native port 80

server {
        listen       443 ssl http2 default_server;
        listen       [::]:443 ssl http2 default_server;
        server_name  _;
 
        server_name  xxxx.xx.com;
 
        ssl_certificate /cert/ssl/xxx.xx.xx.pem;    # specify the server certificate path
 
        ssl_certificate_key /cert/ssl/xxx.xx.xx.key;    # specify the private key certificate path
 
        ssl_session_timeout 5m;
 
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;     # Specify the protocol version supported by the SSL serverssl_ciphers ALL:! ADH:! EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;# specify the encryption algorithm
 
        ssl_prefer_server_ciphers on;    When using SSLv3 and TLS, specify that the server encryption algorithm takes precedence over the client encryption algorithm
 
        # Load configuration files for the default server block.include /etc/nginx/default.d/*.conf; Location / {proxy_pass http://127.0.0.1:80; index index.html index.htm; } error_page 404 /404.html; location = /40x.html { } error_page 500 502 503 504 /50x.html; location = /50x.html { } }Copy the code

sudo systemctl start nginx

Start the nginx sometimes complains, usually in nginx. Config format error, pay attention to the end Use “;” Sign in English symbol

You can also use sudo systemctl status nginx -l to view the number of lines in error

Launch an attempt to access OK!