Apache Configuration HTTPS

Source: Internet
Author: User

1. Modify the Apache configuration file httpd.conf

LoadModule Ssl_module modules/mod_ssl.so

Include conf/extra/httpd-ssl.conf

Remove the # from the front.

2. In the httpd-ssl.conf file add

<virtualhost test.com:443>
DocumentRoot "Site Path"
ServerName test.com
Sslengine on
Sslcertificatefile D:\SSL_CERT\3JSW.COM\DOMAIN.CRT # # your certificate file
Sslcertificatekeyfile D:\ssl_cert\3jsw.com\domain.key # # your certificate file
Sslcertificatechainfile D:\SSL_CERT\3JSW.COM\CA.CRT # # your certificate file
<directory "Site Path" > # # if it appears 403 it could be here.
AllowOverride All
Order Deny,allow
Allow from all
</Directory>
</VirtualHost>

3. Apache Restart

4. It is possible that PHP will not be parsed, perhaps your Apache is reconfigured to parse PHP. For example/php-cgi.exe, this time needs to be added inside the httpd-ssl.conf file VirtualHost tag

Options FollowSymLinks execcgi
AddHandler fcgid-script. php
Fcgidwrapper "D:/hwsapachemaster/php/php56/php-cgi.exe". php
DirectoryIndex index.html index.htm index.php default.php index.jsp

Apache Configuration 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.