Detailed steps for configuring Apache https

Source: Internet
Author: User
Tags website server testlink

SSL: SSL is a secure protocol for HTTP transmission. It uses certificate authentication to ensure data security between the client and the website server. That is to say, HTTP transmission is secure under SSL, and we become HTTPS.

The configuration process is as follows:
Step 1: install Apache to support SSL and install PHP
1. install Apache, apache_2.2.8-win32-x86-openssl-0.9.8g with SSL module
2. Configure Apache to support SSL: Open the configuration file CONF/httpd. conf of Apache.
1) loadmodule ssl_module modules/mod_ssl.so
Include CONF/extra/httpd-ssl.conf
Remove the first two rows #
2) Pay attention to modifying the two fields in the httpd-ssl.conf file:
Sslcertificatefile "C:/apache2.2/CONF/server. CRT"
Sslcertificatekeyfile "C:/apache2.2/CONF/server. Key"
3. install PHP and integrate Apache and PHP (omitted)
For the certificate and Key address generated below.

Step 2: generate a certificate and private key file for the website Server
1. Generate the private key of the server
Go to the command line:
D: \ Local \ apache2 \ bin \ OpenSSL genrsa-out server. Key 1024
Generate a server. Key under the current directory to generate a signing application
2. Generate a signing application
D: \ Local \ apache2 \ bin> OpenSSL req-New-out server. CSR-key server. Key-config .. \ conf \ OpenSSL. CNF
The signing file server. CSR is generated.

Step 3: sign a certificate for the website server through ca

1. Generate the CA private key
D: \ Local \ apache2 \ bin \ OpenSSL genrsa-out ca. Key 1024
More ca. Key Files
2. Use the private key of the CA to generate the self-signed certificate of the CA.
D: \ Local \ apache2 \ bin \ OpenSSL req-New-X509-days 365-key ca. Key-out ca. CRT-config .. \ conf \ OpenSSL. CNF
Enter some information. Note that the common name is the server domain name. If it is on the local machine, it is the local IP address.
3. Ca signs a certificate for the website Server
D: \ Local \ apache2 \ bin \ OpenSSL ca-in server. CSR-out server. CRT-Cert CA. CRT-Keyfile ca. key-config .. \ conf \ OpenSSL. CNF
However, an error is reported:
After you create a demo file in the current directory, create the following file: index.txt, serial: serial content: 01, other blank, and folder newcert. Run the command again to generate the server. CRT file.

Step 4: Copy server. CRT and server. Key to the conf folder of Apache and restart Apache.

Step 5: Configure windows.
Open the ETC file under c: \ windows \ system32 \ drivers \ etc:
To:
127.0.0.1 next0-testing.acgchina.8866.org
127.0.0.1 pp-testing.acgchina.8866.org
127.0.0.1 tlink-testing.acgchina.8866.org

Step 6:
Write the IFRAME webpage under Apache, and add testlink and projectpier.
<IFRAME src = "https://pp-testing.acgchina.8866.org/projectpier/index.php" width = "300" Height = "300"> </iframe>

<IFRAME src = "https://tlink-testing.acgchina.8866.org/testlink/index.php" width = "300" Height = "300"> </iframe>

So visit the https://next0-testing.acgchina.8866.org to see the correct display.

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.