Configuration of OpenSSL and virtual directories-including ports for configuring HTTP and HTTPS

Source: Internet
Author: User
Tags install openssl

If the input Local-acuvue-co-uk.citdev then will automatically jump to make the front add https://words. You will need to change the value of this status to 0 in the database inside the system table securepages.
1) You will then need to obtain the certificate through OpenSSL.
2) Place the certificate's file directory D:\wamp\bin\apache\ssl below,

The reason for putting it in directly is because I failed to install OpenSSL on my own machine. It would be better if you could get it by installing SSL, as follows:

$< FullPath toOpenssl>\Openssl.EXE req-new -keyServer.Key-outServer.csr$< FullPath toOpenssl>\Openssl.EXE req-new -keyServer.Key-outServer.csr$< FullPath toOpenssl>\Openssl.EXE req-new -keyServer.Key-outServer.Csr-config "C:\WAMP25\BIN\APACHE\APACHE2.4.9\CONF\OPENSSL.CNF"$< FullPath toOpenssl>\Openssl.EXE X509-req -days 365 -inServer.Csr-signkeyServer.Key-outServer.Crt

To figure out which of the two files are for Windows, the following is for Linux
3) You need to configure OpenSSL in the Apache configuration file. First open the SSL module, that is, in the httpd.conf file, will ssl_module this sentence before the # number removed

Then through the following statement to import the httpd-ssl.conf file, the reason is two because the business and consumer sites two, you need to import two different configuration files, or you will go directly to the same page.

4) The first two of the virtual directories inside the configuration are examples, to be deleted.

In this way, you can check that the httpd.conf file is configured correctly, and if it is configured correctly, the following statement appears

If a configuration error

The cause of the error could be a directory configuration error, and so on.
6) in the D:\wamp\bin\apache\apache2.4.9\conf\extra directory to face the httpd-ssl-b2c.conf configuration.
The main is to modify the directory of the file

7) Detailed documentation, please refer to the Baidu Cloud

8) The type of the above is divided into two types of files and then load the way unreasonable, will httpd.conf inside load httpd-ssl.conf This sentence comment out

The virtual directory configuration file is then modified to look like this

Compared with the previous, increased

SSLEngine onSSLCertificateFile "D:\wamp\bin\apache\ssl\server.crt"SSLCertificateKeyFile "D:\wamp\bin\apache\ssl\server.key"

This is the way to replace the configuration by httpd-ssl.conf.

Now open need to add https://in front of servername

Configuration of OpenSSL and virtual directories-including ports for configuring HTTP and HTTPS

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.