2000字范文,分享全网优秀范文,学习好帮手!
2000字范文 > 护卫神php搭配阿帕奇 为 “护卫神 apache大师”站点添加ssl证书 实现https访问...

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

时间:2023-11-11 20:00:12

相关推荐

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

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

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

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

编辑 C:HwsApacheMasterApacheconfextrahttpd-ssl.conf 文件,修改 SSLSessionCache 文件的存储路径,使之有效;之后新建一个https的站点配置内容,如本例的 ,证书文件保存在 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://HwsApacheMaster/Apache2.2/logs/ssl_scache"

# SSLSessionCache "shmcb:E://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\_bundle.crt"

SSLCertificateKeyFile "conf\ssl\.key"

ServerName ""

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访问有效

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。