当前位置: 首页 > 后端技术 > PHP

Windows64位下安装

时间:2023-03-29 18:35:09 PHP

forwampserver或phpstudy腾讯云免费SSL证书如果目录对你有用,请点个赞1.下载证书解压复制Apache文件夹。2、打开httpd.ini配置文件LoadModulessl_modulemodules/mod_ssl.so去掉这一行注释中的“#”Includeextra/httpd-ssl.conf去掉这一行注释中的“#”ps:if没有,加3.下一步:把extra/httpd-ssl.conf文件ServerName改成你网站域名,不带端口号DocumentRoot改成网站路径(注意:windows系统目录是反斜杠)SSLCertificateFile是改为server.crt文件路径,公钥(这里是带斜杠/的相对目录)SSLCertificateKeyFile改为server.key文件路径,私钥SSLCertificateChainFile后面改为ca.crt文件路径,简单例子ofrootcertificateListen443SSLPassPhraseDialogbuiltinSSLSessionCache"shmcb:/Apache24/logs/ssl_scache(512000)"SSLSessionCacheTimeout300DocumentRoot"网站根目录为电脑上的绝对路径(如c:\WWW注意Windows系统em目录是反斜杠\)"ServerName你的域名:443SSLEngineonSSLCipherSuiteALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULLSSLCertificateFile"Apache的绝对路径刚才在电脑上下载的/2_你的域名.crt"SSLCertificateKeyFile"刚才在电脑上下载的Apache的绝对路径/3_你的域名.cn.key"SSLCertificateChainFile"刚才下载的Apache在电脑上的绝对路径/1_你的域名.crt"#中文需要你改2.apache可能重启会打不开cmd:cdtoapachebinhttpd.exe-t会报错原因:模块丢失ps:报错原因百度