VPS侦探论坛

 找回密码
 注册
查看: 5095|回复: 2

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

[复制链接]
发表于 2015-7-24 01:01:35 | 显示全部楼层 |阅读模式

给我发了这些文件
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
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 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.log  access;
        }

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_pass  unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
fastcgi_param  HTTPS on;
include fastcgi.conf;
}
access_log  off;
}



参考军哥,某教程,HTML页面可以打开,PHP页面显示502错误
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2015-7-24 09:14:22 | 显示全部楼层

lnmpa ?

lnmpa的话php解析部分需要替换为lnmpa里面的配置
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-28 03:29 , Processed in 0.035784 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表