mac中apache开启https功能

来源:互联网 发布:数据库中的约束是什么 编辑:程序博客网 时间:2024/04/28 06:48

今天尝试在mac下搭建https服务器环境,用于测试iOS app企业版的应用内更新。

参考链接如下:

http://blog.csdn.net/zhu410289616/article/details/46566073

在第二步-配置apache,开启ssl配置完成时,运行sudo apachectl configtest命令,报如下错误:

AH00526: Syntax error on line 92 of /private/etc/apache2/extra/httpd-ssl.conf:

SSLSessionCache: 'shmcb' session cache not supported (known names: ). Maybe you need to load the appropriate socache module (mod_socache_shmcb?).

解决方式如下:

编辑/etc/apache2/httpd.conf文件,将LoadModule socache_shmcb_module libexec/apache2/mod_socache_shmcb.so前面的#去掉即可。按照错误提示信息,应该是缺少加载mod_socache_shmcb模块所导致的,原博主的步骤提示中貌似漏了这一步提示信息。

0 0