Phpstudy How to install Mount Vista SSL Certificate window under Apache Server Web site HTTPS access

Source: Internet
Author: User
Tags ssl certificate

1. Download King Ann free Certificate

https://www.zzidc.com/help/helpDetail?id=555

2. File decompression upload to the server, the location of their own decision

3. Adjust Apache configuration View original link: https://www.zzidc.com/help/helpDetail?id=555

① Make sure your Apache compiles the SSL module, which is the necessary condition to support SSL certificate (if not, compile, open phpstudy--settings--php module extension--PHP-OPENSSL front check above).

② into the Apache directory, httpd.conf find #loadmodule ssl_module modules/mod_ssl.so, remove the preceding comment, so that the SSL module takes effect (if the module has been stripped of comments, do not operate).

③ Find the site configuration for configuring 80 port HTTP, typically in the following path: D:\phpStudy\Apache\conf has a vhosts.conf file, according to 80 configuration, another VirtualHost443, as follows:

Listen 443

<virtualhost *:443>

ServerAdmin [email protected] # (and 801 samples)

ServerName yourdomain.com # (and 801 kind)

Errorlog "/logs" # (and 801 samples)

DocumentRoot "D:\phpStudy\WWW" # (and 801 samples)

Sslengine on

Sslprotocol All-sslv2-sslv3

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

Sslcertificatefile "/USR/LOCAL.../YOURDOMAIN.COM.CRT (certificate path on server)"

Sslcertificatekeyfile "/usr/local.../yourdomain.com.key (certificate path on server)"

Sslcertificatechainfile "/USR/LOCAL.../BUNDLE.CRT (certificate path on server)"

</VirtualHost>

④ reboot Apache (may error, see if port 443 is blocked or occupied by a firewall)

After normal restart of Apache, enter https://yourdomain.com in the browser to see the security lock out.

Back up your certificate!

Phpstudy How to install Mount Vista SSL Certificate window under Apache Server Web site HTTPS access

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.