(SSL证书)apache添加https
来源:互联网 发布:php教程视频教程全集 编辑:程序博客网 时间:2024/05/18 03:39
注意 服务器要打开443端口
1.申请证书,这里使用的腾讯云的SSL免费证书(阿里也有免费的)
2.打开php.ini扩展。
extension=php_openssl.dll
3.打开httpd.conf扩展
Include conf/extra/httpd-ssl.conf
4.把下好的证书复制到
\Apache\conf\ssl
5.编辑http-ssl.conf文件(位置:Apache\conf\extra)
删除里http-ssl.conf的内容
键入代码
SSLStrictSNIVHostCheck offSSLCipherSuite AESGCM:ALL:!DH:!EXPORT:!RC4:+HIGH:!MEDIUM:!LOW:!aNULL:!eNULLSSLProtocol all -SSLv2 -SSLv3<VirtualHost *:443> DocumentRoot "C:\project\https" #项目地址 ServerName www.scenewood.top #域名 ServerAlias scenewood.top #域名 <Directory "C:\project\https"> #项目地址 Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory>SSLEngine onSSLCertificateFile "C:\phpstudy\Apache\conf\ssl\scenewood\2_scenewood.top.crt" #证书 2_域名_crtSSLCertificateKeyFile "C:\phpstudy\Apache\conf\ssl\scenewood\3_scenewood.top.key" #证书 3_域名_keySSLCertificateChainFile "C:\phpstudy\Apache\conf\ssl\scenewood\1_root_bundle.crt" #证书 1_root_bundle.crt</VirtualHost>
阅读全文
0 0
- (SSL证书)apache添加https
- Apache更换ssl https证书问题注意事项
- 如何添加SSL证书实现https请求
- https-ssl-nginx-apache-httpd-tomat申请ssl证书小结
- win7 Apache 配置支持HTTPS的SSL证书
- Apache服务器配置https协议/SSL证书的方法
- wdcp + apache + 阿里云ssl证书安装https
- apache允许https访问及ssl免费证书申请
- SSL证书实现https,环境:phpStudy下Apache环境
- apache-tomcat 9 SSL证书布置及强制https
- Ubuntu 16.04 Apache https设置及SSL免费证书安装
- https 之 ssl 证书
- HTTPS SSL证书
- Nginx添加SSL证书并设置自动http转换HTTPS
- tomcat添加ssl证书对https的支持
- 十大免费SSL证书:网站免费添加HTTPS加密
- 十大免费SSL证书:网站免费添加HTTPS加密
- 生成apache ssl证书
- 为ASP.NetCore程序启用SSL
- Https系列之三:让服务器同时支持http、https,基于spring boot
- Java学习笔记(38)--包装类
- session
- Intent的用法(1)
- (SSL证书)apache添加https
- 八大排序算法代码C
- 再起航,我的学习笔记之JavaScript设计模式26(解释器模式)
- C++11获取线程的返回值
- nutch和solr做爬虫
- sourceTree 问题解决
- HDU-1001 calculate SUM(n) = 1 + 2 + 3 + ... + n.
- easyui queryParams的使用
- 我是如何利用Hadoop做大规模日志压缩的