护卫神php搭配阿帕奇,为 “护卫神 apache大师”站点添加ssl证书,实现https访问...

环境:护卫神 apache大师 2.1.0,Windows 2012

过程:安装好 “护卫神 apache大师” 软件,开设站点,如本例 mp.anqun.org

编辑 C:HwsApacheMasterApacheconfhttpd.conf 文件,搜索 mod_ssl,移除注释符号#(本例第124行); 同理,让 httpd-ssl.conf 配置文件也生效

编辑 C:HwsApacheMasterApacheconfextrahttpd-ssl.conf 文件,修改 SSLSessionCache 文件的存储路径,使之有效;之后新建一个https的站点配置内容,如本例的 mp.anqun.org,证书文件保存在 C:HwsApacheMasterApacheconfssl 目录内# Inter-Process Session Cache:

# Configure the SSL Session Cache: First the mechanism

# to use and second the expiring timeout (in seconds).

#SSLSessionCache "dbm:E:/Huweishen.com/HwsApacheMaster/Apache2.2/logs/ssl_scache"

# SSLSessionCache "shmcb:E:/Huweishen.com/HwsApacheMaster/Apache2.2/logs/ssl_scache(512000)"

SSLSessionCache "shmcb:logs/ssl_scache(512000)"

SSLSessionCacheTimeout 300

# Semaphore:

# Configure the path to the mutual exclusion semaphore the

# SSL engine uses internally for inter-process synchronization.

SSLMutex default

##

## SSL Virtual Host Context

##

SSLEngine on

SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP

SSLCertificateFile "conf\ssl\1_mp.anqun.org_bundle.crt"

SSLCertificateKeyFile "conf\ssl\2_mp.anqun.org.key"

ServerName "mp.anqun.org"

DocumentRoot "C:\HwsApacheMaster\wwwroot\mp_f75yPU"

Options FollowSymLinks ExecCGI

#AddHandler fcgid-script .php

#FcgidWrapper "/php-cgi.exe" .php

DirectoryIndex index.html index.htm index.php default.php index.jsp

AllowOverride All

Order Deny,Allow

Allow from all

重启apache,在浏览器里测试,https访问有效

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值