做个记录
http://www.ttlsa.com/web/multiple-https-host-nginx-with-a-ip-configuration/
做个记录
http://www.ttlsa.com/web/multiple-https-host-nginx-with-a-ip-configuration/
sslcurl 学习下载点这里
关于php在使用curl打开https情况下,经常出现502错误,那一般是curl函数要设置一些 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
上面的代码供参考。
SSLCertificateFile “/etc/pki/tls/f028f24f6ee793e6.crt”
SSLCertificateKeyFile “/etc/pki/tls/private/ca.key”
SSLCertificateChainFile “/etc/pki/tls/sf_bundle-g2-g1.crt”
openssl genrsa -des3 -out server.key 2048
生成server.key
openssl rsa -in server.key -out server.key
去除server.key 里面密码
openssl req -new -key server.key -out server.csr
生成server.csr
提交server.csr 内容到godaddy,审核后下载zip文件
把里面的非gd_bundled的文件和server.key 合并为pem
cat bf5d584ffa226fa6.crt server.key > /etc/nginx/server.pem
cp server.key /etc/nginx/server.key
nginx的配置里面这样写
ssl on;
ssl_certificate /etc/nginx/server.pem;
ssl_certificate_key /etc/nginx/server.key;
Centos 6.5 系统 的sqlite 3 的情况下可能出现此问题
解决方法比较蹊跷,首先定位为sqlite 3的方法是
gdb /path/to/php
>run curl_test.php
出现一堆错误,其中显示出sqlite
Starting program: /a/apps/php-5.2.17/bin/php curl_test.php
[Thread debugging using libthread_db enabled]
Program received signal SIGSEGV, Segmentation fault.
0x00007fffeb461e9c in sqlite3_file_control () from /usr/lib64/libsqlite3.so.0
Missing separate debuginfos, use: debuginfo-install zadmin-2.0.1-0.x86_64
http://www.wdlinux.cn/bbs/viewthread.php?tid=3657&highlight=https
上面问题不一定是解决 rpm 安装的wdcp 的php问题,
还可能是 /php-curl-https-sqlite3.html