1.腾讯云申请ssl证书 需要有域名
2.
复制文件到服务器
新建cert目录
把ssl的文件放到这个目录下面
打开配置文件httpd.con
把注释放开
#LoadModule ssl_module modules/mod_ssl.so
在下面新增一个
Include conf/vhostssl.conf 引入vhostssl.conf 配置
4.编辑新增的配置文件
复制一下内容到那个新的配置文件
Listen 443
<VirtualHost *:443>
DocumentRoot “C:\phpstudy\PHPTutorial\WWW”
ServerName d1.itjoe.xyz/
ServerAlias d1.itjoe.xyz
SSLEngine on
SSLProtocol TLSv1 TLSv1.1 TLSv1.2
SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
SSLCertificateFile “C:\phpstudy\PHPTutorial\Apache\cert\2_d1.itjoe.xyz.crt”
SSLCertificateKeyFile
“C:\phpstudy\PHPTutorial\Apache\cert\3_d1.itjoe.xyz.key”
SSLCertificateChainFile
“C:\phpstudy\PHPTutorial\Apache\cert\1_root_bundle.crt”
<Directory “C:\phpstudy\PHPTutorial\WWW”>
Options +Indexes +FollowSymLinks +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
5.新增的配置文件中修改为自己的
6.TCP:443端口放行
ted
</Directory>
</VirtualHost>
5.新增的配置文件中修改为自己的
6.TCP:443端口放行