HTTPS Service in NGINX

To use the HTTPS service NGINX follows:

  1. Should first apply for a ssl certificate for your domain name, Ali cloud server can apply for a safety certificate ssl directly Ali cloud console.

  2. After Ali cloud platform application for a certificate is complete, click to download the certificate will be downloaded to the local certificate. Then transfer to your own server using ftp tool

  3. listen 443 ssl listening port number 443

    ip ip server_name your server or binding domain

    Ssl_certificate path xxx.pem file on the server (fill absolute best path)

    Ssl_certificate_key path xxx.key file on the server (fill absolute best path)

  4. Once configured using nginx -t check whether there is a problem

  5. Run service nginx restart to restart the server nginx

  6. Enter in your browser https: // domain name, if the following occurs description nginx configuration was successful.

Guess you like

Origin www.cnblogs.com/finlu/p/11617826.html