The configuration process for Apache SSL forwarding

Source: Internet
Author: User
Tags openssl openssl rsa openssl x509 win32

Configuring SSL

Reference: HTTP://TUD.AT/PROGRAMM/APACHE-SSL-WIN32-HOWTO.PHP3

1 Installing Apache

Apache_2.2.11-win32-x86-openssl-0.9.8i.msi

Follow the prompts step-by-step, installation can be.

* The Apache installation directory is represented by {Apache} in the following example: D:/DEVEL/APACHE2.2/

2 Configuring SSL

(1) Apache_2.2.11-win32-x86-openssl-0.9.8i.msi has installed OpenSSL and mod_ssl

(2) Download OpenSSL configuration file

openssl.cnf, download file, save to {Apache}\bin

(3) Generate certificate

Command code

OpenSSL req-config openssl.cnf-new-out MY-SERVER.CSR

OpenSSL rsa-in privkey.pem-out My-server.key

OpenSSL x509-in my-server.csr-out my-server.cert-req-signkey my-server.key-days 365

The first command prompt is more, the approximate input some data to be possible.

"Password" must be entered;

"Common name (eg, your websites domain name) []:" must also enter, no domain name to write a random.

(4) Configure SSL

Remove the conf/httpd.conf of the following two sentences to make it effective:

Apache Config Code

LoadModule Ssl_module modules/mod_ssl.so

Include conf/extra/httpd-ssl.conf

Copy the file generated above in the {Apache} directory:

Bin/my-server.cert => Conf/ssl/my-server.cert

Bin/my-server.key => Conf/ssl/my-server.key

Modify Conf/extra/httpd-ssl.conf

Apache Config Code

Sslcertificatefile "D:/DEVEL/APACHE2.2/CONF/SERVER.CRT" =>

More Wonderful content: http://www.bianceng.cn/Servers/web/

Sslcertificatefile "D:/devel/apache2.2/conf/ssl/my-server.cert"

Sslcertificatekeyfile "D:/devel/apache2.2/conf/server.key" =>

Sslcertificatekeyfile "D:/devel/apache2.2/conf/ssl/my-server.key"

SSL configuration is now complete. Configure the agent below

Configuring agents

Remove the conf/httpd.conf of the following two sentences to make it effective:

Apache Config Code

LoadModule Proxy_module modules/mod_proxy.so

LoadModule Proxy_connect_module modules/mod_proxy_connect.so

LoadModule Proxy_http_module modules/mod_proxy_http.so

Add the following configuration at the end of conf/httpd.conf:

Apache Config Code

Roxyrequests off

<proxy *>

Order Deny,allow

Allow from all

</proxy>

proxypass/https://{those_compute_ip}/

proxypassreverse/https://{those_compute_ip}/

Modify Conf/extra/httpd-ssl.conf, add

Apache Config Code

Sslproxyengine on

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.