Nginx Configure SSL Certificate

Source: Internet
Author: User
Tags ssl certificate


URL of the SSL certificate requested: https://www.pianyissl.com/


Because it is a test, select free to try

There will be a compressed package after the application.

There is a Nginx folder, put the following

Server.key

Server.pem

These two files are uploaded to the server.

In this I'm moving these two files into the/usr/local/nginx/conf directory


Parameters are required for server-side compilation of Nginx


./configure--user=www--group=www--prefix=/usr/local/nginx--with-http_stub_status_module --with-http_ssl_ Module --with-http_gzip_static_module--with-ipv6

Make && make install


For nginx configuration HTTPS configuration, append the following content

# HTTPS Server
server {
Listen 443;
server_name apk.moootooo.com;
SSL on;
Ssl_certificate Server.pem;
Ssl_certificate_key Server.key;
Ssl_session_timeout 5m;
Ssl_protocols SSLv3 TLSv1;
Ssl_ciphers high:! Adh:! Export56:rc4+rsa:+medium;
Ssl_prefer_server_ciphers on;
Location/{
root HTML;
Index index.html index.htm;
}
}




Nginx Configure SSL Certificate

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.