SSL authentication configuration instructions Wamp Https's
version Apache2.2.11
rerun restart bottom right corner of the icon can not effectively load the configuration file should quit after: Note
Note: C: \ wamp \ bin \ apache \ Apache2.2.11 \ logs \ error.txt see error log
Note: C: \ wamp \ bin \ apache \ Apache2.2.11 \ logs \ ssl_request.txt see the access log Https
The first step: Apache extranet access
<Directory "c: / WAMP / the WWW /">
the allow from All # Note this sentence added to a lowercase remove the original 127.0.0.1
Step 2: Request a free SSL certificate on Tencent cloud
get three files
1_root_bundle.crt
2_www.jujinke.cn.crt
3_www.jujinke.cn.key
Step Three: Configure httpd.conf path C: \ WAMP \ bin \ Apache \ Apache2.2.11 \ the conf \ httpd.conf
#LoadModule ssl_module modules / # Number mod_ssl.so removed
#Include conf / extra / httpd-ssl.conf removed #number
Step Four: httpd.conf in these words must be
<Directory "C: / WAMP / WWW /">
the Options -Indexes + FollowSymlinks
the AllowOverride All
the Order the deny, the allow
the allow from All
</ Directory>
Step five: Copy the three files to the server certificate
in C: New ssl directory \ wamp \ bin \ apache \ \ conf Apache2.2.11 under the three documents admitted
Step 6: Configuring httpd-ssl.conf path C: \ wamp \ bin \ apache \ Apache2.2.11 \ conf \ extra \ httpd-ssl.conf
a, DocumentRoot "C: / Program Files / Apache Software Foundation / Apache2.2 / htdocs "
to
DocumentRoot" c: / wamp / www "
Note:" c: / wamp / www " is not the last / symbol
two, <VirtualHost _default_: 443>
to
<VirtualHost 0.0.0.0:443>
three, ServerName localhost : 443
instead
ServerName www.jujinke.cn
Fourth, by adding the following sentence at the top SSLEngine on checking if there is any increase in
five, ServerAdmin me @ localhost commented sentence #
Sixth, the following are a few to check the directory does not correspond to the full text catalog correctness
1.ErrorLog "C: / Program Files / Apache Software Foundation / Apache2.2 / logs / error.log"
instead
ErrorLog "C: /wamp/bin/apache/Apache2.2.11/logs/error.log"
2.TransferLog "C:/Program Files/Apache Software Foundation/Apache2.2/logs/access.log"
改为
TransferLog "C:/wamp/bin/apache/Apache2.2.11/logs/access.log"
3.CustomLog "C:/Program Files/Apache Software Foundation/Apache2.2/logs/ssl_request.log" \
改为
CustomLog "C:/wamp/bin/apache/Apache2.2.11/logs/ssl_request.log" \
4.<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin">
改为
<Directory "C:/wamp/bin/apache/Apache2.2.11/cgi-bin">
5.SSLSessionCache "shmcb:C:/Program Files/Apache Software Foundation/Apache2.2/logs/ssl_scache(512000)"
改为
SSLSessionCache "shmcb:C:/wamp/bin/apache/Apache2.2.11/logs/ssl_scache(512000)"
Seven, adding three certificates
1.SSLCertificateFile "C: / Program Files / Apache Software Foundation / Apache2.2 / conf / server.crt"
instead
SSLCertificateFile "C: /wamp/bin/apache/Apache2.2.11/conf/ssl/2_www.jujinke.cn .crt "
2.SSLCertificateKeyFile" C: / Program Files / the Apache Software Foundation / Apache2.2 / conf / server.key "
instead
SSLCertificateKeyFile" C: /wamp/bin/apache/Apache2.2.11/conf/ssl/3_www. jujinke.cn.key "
3. # SSLCertificateChainFile" C: / Program Files / the Apache Software Foundation / the Apache2.2 / the conf / Server-in ca.crt "
to remove #
SSLCertificateChainFile" C: / WAMP / bin / Apache / the Apache2. 2.11 / conf / ssl / 1_root_bundle.crt "
eight, restart wamp can use Https: // to access the