当前位置:论坛首页 > Linux面板 > 求助

ssl 配置后 php index.php 访问不了

发表在 Linux面板2019-11-11 14:34 [复制链接] 1 657

我配了个证书,要求要时https 访问,我只要求ip能够访问就可以,必须是443端口,但是我配置好后,配置好后对应的index.html路径能够访问,但是php 页面却不能访问,不知道是什么原因。
这个是nginx 配置:
  server {
        listen      443  ssl;
        server_name  xxx.cn;
                root /www/wwwroot/paopao/cgi;
                index index.html index.htm;
        ssl_certificate ssl/xx.crt;
        ssl_certificate_key ssl/xx.key;

        #ssl_session_cache    shared:SSL:1m;
        ssl_session_timeout  5m;

        #ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
                #ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        #ssl_prefer_server_ciphers  on;

        location / {
            index index.php  index.html index.htm;
            #autoindex  on;
        }
    location ~ \.php(.*)$ {
            root /www/wwwroot/paopao/cgi;
            fastcgi_pass 127.0.0.1:9000;
            #fastcgi_pass    unix:/dev/shm/php-cgi.sock;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include fastcgi.conf;

        }
    }

使用道具 举报 只看该作者 回复
发表于 2019-11-11 14:37:43 | 显示全部楼层
xttps://106.53xxx.xx.xx/index4.html[/url],可以访问,但是
xttps://106.53xxx.xx.xx/index.php[/url] 没办法访问,502 Bad Gateway
nginx
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理

工作时间:09:00至24:00

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