How do I upgrade a Web site to an HTTPS protocol?

Source: Internet
Author: User

Basic Concepts:

HTTP: is the most widely used Internet protocol, is a client and server-side request and response standards, for transmission from the WWW server hypertext to the local browser Transfer protocol, it can make the browser more efficient, so that network transmission reduced.

HTTPS: is a security-targeted HTTP channel, simply speaking is the security version of HTTP. That is, the SSL layer is added under HTTP, the security base of HTTPS is SSL, so the detailed content of encryption needs SSL.

Many users are currently on the wait-and-see attitude to HTTPS , of course, the site upgrade HTTPS pros and cons, the benefit of course is the safety factor to improve, reduce the risk of hijacking, the drawbacks are mainly reflected in the speed, due to certificate verification, multiple handshake,CPU consumption , theHTTPS page speed will be slowed down a bit.

Google, Firefox and other browser manufacturers have also carried up the banner of HTTPS , for the HTTP site will prompt an unsafe warning. And like Google, Baidu and other search engines have already corresponding HTTPS call, all claim to HTTPS site page friendly even priority crawl, ranked before, of course, the actual implementation of the situation is another matter, at present, Google to do more than Baidu more mature.



It will take some time for the Internet site to be upgraded to the HTTPS protocol, but there is no denying that HTTPS is a trend. So here's a look at how to upgrade your website to the HTTPS protocol.

1. Purchase, download SSL Certificate

SSL certificates are paid and free of charge, of course, the price is not very high. Before I have tidied up several well-known domestic and foreign SSL merchant, can be for everybody reference (http://blog.cnezsoft.com/blog/ssl-80138.html).

2. Backup, backup , backup

This is an extremely important and necessary step. Even if you think the technology is deep, be familiar with the server and do not neglect to do the site backup before upgrading.

3. Install the certificate

Different manufacturers or have provided the corresponding installation certificate solution, the process is similar. Here I take the free SSL Certificate As an example, in the LAMP environment to tell you how to install the certificate.

Open Apache configuration file httpd.conf, locate

#LoadModule ssl_module modules/mod_ssl.so#include conf/extra/httpd-ssl.conf

Delete the configuration statement comment symbol "#" At the beginning of the line

Save exit.

Open the httpd-ssl.conf file in the Conf/extra directory under the Apache installation directory

Look for the following configuration statement in the configuration file

Sslcertificatefile conf/ssl.crt/SERVER.CRT Configure the server certificate to this path Sslcertificatekeyfile conf/ssl.key/  Server.key Configure the server certificate private key to this path #sslcertificatechainfile conf/ssl.crt/ca.crt Remove the "#" comment from the beginning of the line and configure the intermediate CA certificate ca.crt to the path.

Add SSL protocol support statements to turn off unsecured protocols and cryptographic suites :

Sslprotocol All-sslv2-sslv3

Modify the encryption suite as follows :

Sslciphersuite aesgcm:all:! Dh:! export:! rc4:+high:! medium:! Low:!anull:!enull;

Save the exit and restart Apache. Check the HTTPS page for successful access.

4.301 redirect

Consider the SEO impact, the previous HTTP page must be converted to HTTPS. We can modify the configuration file, here I still take the LAMP environment, for example, add the following code in the . htaccess File:

%{HTTPS} offrewriterule (. *) https://%{http_host}%{request_uri} [r=301,l]

Summarize:

This article introduces the website to upgrade HTTPS When necessary process, specific details or due to different server environment and SSL certificate Merchant different and there are some differences, but the overall is similar. If you are in the website to upgrade the HTTPS process encountered confusion or have successful experience, welcome to share the exchange.

How do I upgrade a Web site to an HTTPS protocol?

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.