网站建设资讯

NEWS

网站建设资讯

windows服务器Apache环境配置SSL

在apache的配置文件(httpd.conf)中,对以下两句话取消注释注意:第一条加载ssl,第二条引入配置文件

在你的Apache目录中找到\conf\httpd.conf并打开,找到如下两行
# LoadModule ssl_module modules/mod_ssl.so
# Include conf/extra/httpd-ssl.conf
将这两行前面的注释符号 # 去掉。

LoadModule ssl_module modules/mod_ssl.so (如果找不到请确认是否编译过 openssl 插件) Include conf/extra/httpd-ssl.conf

配置httpd-ssl.conf文件
在你的Apache目录中找到\conf\extra\httpd-ssl.conf
在httpd-ssl.conf文件中最后面添加如下信息,其中域名地址根据自己的实际情况修改。

目前成都创新互联已为超过千家的企业提供了网站建设、域名、网站空间、网站托管、服务器托管、企业网站设计、河间网站维护等服务,公司将坚持客户导向、应用为本的策略,正道将秉承"和谐、参与、激情"的文化,与客户和合作伙伴齐心协力一起成长,共同发展。

Listen 443 SSLPassPhraseDialog builtin SSLSessionCache "shmcb:/Apache24/logs/ssl_scache(512000)" SSLSessionCacheTimeout 300 DocumentRoot "E:\web\public" ServerName www.abc.com:443 ServerAdmin admin@example.com SSLEngine on SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL SSLCertificateFile "C:\Apache24\cert\www\public.pem" SSLCertificateKeyFile "C:\Apache24\cert\www\214132021230522.key" SSLCertificateChainFile "C:\Apache24\cert\www\chain.pem" SSLOptions +StdEnvVars SSLOptions +StdEnvVars BrowserMatch ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 # Per-Server Logging: # The home of a custom SSL log file. Use this when you want a # compact non-error SSL logfile on a virtual host basis. CustomLog "/Apache24/logs/ssl_request.log" \ "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x "%r" %b"

在网站根目录的.htaccess文件中配置跳转
配置http跳转https


当前标题:windows服务器Apache环境配置SSL
网站路径:http://cdweb.net/article/cecpc.html