Appserv Configuring SSL Certificates

Source: Internet
Author: User
Tags ssl certificate

One: Open the httpd.conf file and remove the comment line:

Include conf/extra/httpd-ahssl.conf

LoadModule Ssl_module modules/mod_ssl.so

ServerName localhost:80

Two: Place the SSL certificate

Choose Apache

The domain name is crossed out, its CRT and key are put into and httpd.conf the SSL folder in the sibling directory, and changed to SERVER.CRT and Server.key

Two: Open httpd-ahssl.conf (in the Extra folder under the httpd.conf sibling directory), modify the following:

<virtualhost _default_:443>

Sslengine on

ServerName localhost:443 #主要修改一下这里

Sslcertificatefile "${srvroot}/conf/ssl/server. CRT"

Sslcertificatekeyfile "${srvroot}/conf/ssl/server. Key"

DocumentRoot "C:/appserv/www"

# DocumentRoot Access handled globally in httpd.conf

Customlog "${srvroot}/logs/ssl_request.log" \

"%t%h%{ssl_protocol}x%{ssl_cipher}x \"%r\ "%b"

<directory "C:/appserv/www" >

Options Indexes includes FollowSymLinks

AllowOverride All

Require all granted

</Directory>

</virtualhost>

Restart Apache

Appserv Configuring SSL Certificates

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.