时间:2023-02-14 05:00:01 | 来源:建站知识
时间:2023-02-14 05:00:01 来源:建站知识
一般 SSL 证书可以同时支持以下两个域名:www.fuyeor.com => https://www.fuyeor.com fuyeor.com => https://fuyeor.com
SSLEngine on #开启SSLSSLProxyEngine OnSSLProxyVerify noneSSLCertificateFile "C:/SSL证书路径/ video.fuyeor.com _public.crt" #公匙证书SSLCertificateKeyFile "C:/SSL证书路径/ video.fuyeor.com .key" #私匙证书SSLCertificateChainFile "C:/SSL证书路径/ video.fuyeor.com _chain.crt" #域名证书
并将 HTTP 重定向到相应的HTTPS站点:<VirtualHost *:80>#网站域名ServerName video.fuyeor.comRewriteEngine on# http 跳转到https上:RewriteRule ^(.*)?$ https://video.fuyeor.com $1 [R=301,L]</VirtualHost># 将 video.fuyeor.com 改成你的域名
关键词:安全