疯狂痴呆 发表于 2015-7-24 01:01:35

https要怎么安装呢,证书下来了

给我发了这些文件
for Apache.zip
1_root_bundle.crt
2_xxx.com.crt
3_xxx.com.key

for Nginx.zip
1_xxx.com_bundle.crt
2_xxx.com.key

for Other Server.zip
1_cross_Intermediate.crt
2_issuer_Intermediate.crt
3_user_xxx.com.crt
4_user_xxx.com.key
root.crt

for Tomcat.zip
xxx.com.jks



linode 大便系统,装的是军哥上一个版本的LNMPA

疯狂痴呆 发表于 2015-7-24 01:49:38

server
        {
                listen 80;
                #listen [::]:80;
                server_name xxx.com www.xxx.com;
                index index.html index.htm index.php default.html default.htm default.php;
                root/home/wwwroot;
                location / {
                        try_files $uri @apache;
                        }

                location @apache {
                        internal;
                        proxy_pass http://127.0.0.1:88;
                        include proxy.conf;
                        }

                location ~ [^/]\.php(/|$)
                        {
                                proxy_pass http://127.0.0.1:88;
                                include proxy.conf;
                        }


                access_log/home/wwwlogs/xxx.com.logaccess;
        }

server
{
listen      443;
server_name xxx.com www.xxx.com;
index index.html index.htm index.php;
root/home/wwwroot/xxx.com;

ssl    on;
ssl_certificate    /root/1_xxx.com_bundle.crt;
ssl_certificate_key   /root/2_xxx.com.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

location ~ .*\.(php|php5)?$
{
fastcgi_passunix:/tmp/php-cgi.sock;
fastcgi_index index.php;
fastcgi_paramHTTPS on;
include fastcgi.conf;
}
access_logoff;
}



参考军哥,某教程,HTML页面可以打开,PHP页面显示502错误

licess 发表于 2015-7-24 09:14:22

lnmpa ?

lnmpa的话php解析部分需要替换为lnmpa里面的配置
页: [1]
查看完整版本: https要怎么安装呢,证书下来了