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

宝塔面板Linux,http可以访问,https无法访问,付费请求协助

发表在 Linux面板2018-6-2 18:57 [复制链接] 10 6557

本帖最后由 HotSpace 于 2018-6-3 10:02 编辑

https.png

宝塔面板http可以访问,https无法访问,直接IP也可以访问。域名在阿里,服务器是腾讯的,443、80端口都有开放,SSL证书是腾讯云申请的,在阿里云域名中添加了txt解析。


阿里云域名解析如下:
domain.png


腾讯云服务器安全策略配置如下:


tx.png


网站SSL配置如下:

SSL.png


Nignix.conf文件如下:

user  www www;
worker_processes auto;
error_log  /www/wwwlogs/nginx_error.log  crit;
pid        /www/server/nginx/logs/nginx.pid;
worker_rlimit_nofile 51200;


events
    {
        use epoll;
        worker_connections 51200;
        multi_accept on;
    }


http
    {
        include       mime.types;
                #include luawaf.conf;


                include proxy.conf;


        default_type  application/octet-stream;


        server_names_hash_bucket_size 512;
        client_header_buffer_size 32k;
        large_client_header_buffers 4 32k;
        client_max_body_size 50m;


        sendfile   on;
        tcp_nopush on;


        keepalive_timeout 60;


        tcp_nodelay on;


        fastcgi_connect_timeout 300;
        fastcgi_send_timeout 300;
        fastcgi_read_timeout 300;
        fastcgi_buffer_size 64k;
        fastcgi_buffers 4 64k;
        fastcgi_busy_buffers_size 128k;
        fastcgi_temp_file_write_size 256k;
                fastcgi_intercept_errors on;


        gzip on;
        gzip_min_length  1k;
        gzip_buffers     4 16k;
        gzip_http_version 1.1;
        gzip_comp_level 2;
        gzip_types     text/plain application/javascript application/x-javascript text/javascript text/css application/xml;
        gzip_vary on;
        gzip_proxied   expired no-cache no-store private auth;
        gzip_disable   "MSIE [1-6]\.";


        limit_conn_zone $binary_remote_addr zone=perip:10m;
                limit_conn_zone $server_name zone=perserver:10m;


        server_tokens off;
        access_log off;


server
    {
    listen 888;
        server_name www.bt.cn;
        index index.html index.htm index.php;
        root  /www/server/phpmyadmin;


        #error_page   404   /404.html;
        include enable-php.conf;


        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
        {
            expires      30d;
        }


        location ~ .*\.(js|css)?$
        {
            expires      12h;
        }


        location ~ /\.
        {
            deny all;
        }


        access_log  /www/wwwlogs/access.log;
    }
  


server {
        listen 443;
        server_name qifj.hoxxxe.cn; #填写绑定证书的域名
        ssl on;
        ssl_certificate 1_qifj.hoxxxe.cn_bundle.crt;
        ssl_certificate_key 2_qifj.hoxxxe.cn.key;
        ssl_session_timeout 5m;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #按照这个协议配置
        ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;#按照这个套件配置
        ssl_prefer_server_ciphers on;
        location / {
            root   html; #站点目录
            index  index.html index.htm;
        }
    }
  
include /www/server/panel/vhost/nginx/*.conf;
}



Nginx日志文件,如下:
2018/06/03 08:58:51 [emerg] 2807#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2018/06/03 08:58:51 [emerg] 2807#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2018/06/03 08:58:51 [emerg] 2807#0: bind() to 0.0.0.0:888 failed (98: Address already in use)
2018/06/03 08:58:51 [emerg] 2807#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2018/06/03 08:58:51 [emerg] 2807#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2018/06/03 08:58:51 [emerg] 2807#0: bind() to 0.0.0.0:888 failed (98: Address already in use)
2018/06/03 08:58:51 [emerg] 2807#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2018/06/03 08:58:51 [emerg] 2807#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2018/06/03 08:58:51 [emerg] 2807#0: bind() to 0.0.0.0:888 failed (98: Address already in use)
2018/06/03 08:58:51 [emerg] 2807#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2018/06/03 08:58:51 [emerg] 2807#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2018/06/03 08:58:51 [emerg] 2807#0: bind() to 0.0.0.0:888 failed (98: Address already in use)
2018/06/03 08:58:51 [emerg] 2807#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2018/06/03 08:58:51 [emerg] 2807#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2018/06/03 08:58:51 [emerg] 2807#0: still could not bind()


使用道具 举报 只看该作者 回复
发表于 2018-6-2 18:58:17 | 显示全部楼层
直接IP也可以访问
使用道具 举报 回复 支持 反对
发表于 2018-6-3 11:31:28 | 显示全部楼层
怎么解决呀?有人知道吗?付费
使用道具 举报 回复 支持 反对
发表于 2018-6-3 13:56:39 | 显示全部楼层
配置文件你改了吗?

----------------------------------------------------------------------------------------------------
免费图床点击联系
使用道具 举报 回复 支持 反对
发表于 2018-6-3 21:47:59 | 显示全部楼层
penn 发表于 2018-6-3 13:56
配置文件你改了吗?

-------------------------------------------------------------------------------- ...

哪个配置文件?
使用道具 举报 回复 支持 反对
发表于 2018-6-3 23:07:23 | 显示全部楼层
……
不知道你想搞什么味鬼 宝塔面板用的是 Python 网站是 ningx
你竟然希望两个程序一起争夺443端口
能打开才是真TM见鬼
使用道具 举报 回复 支持 反对
发表于 2018-6-4 10:01:48 | 显示全部楼层
  1. lsof -i :80
  2. lsof -i :443
复制代码

输入这两条命令看看
使用道具 举报 回复 支持 反对
发表于 2018-6-4 10:03:46 | 显示全部楼层
雅丶涵 发表于 2018-6-3 23:07
……
不知道你想搞什么味鬼 宝塔面板用的是 Python 网站是 ningx
你竟然希望两个程序一起争夺443端口

宝塔面板就是默认安装的,LNMP这块的能力比较菜,怎么解决呢?谢谢
使用道具 举报 回复 支持 反对
发表于 2018-6-4 10:16:33 | 显示全部楼层
雅丶涵 发表于 2018-6-3 23:07
……
不知道你想搞什么味鬼 宝塔面板用的是 Python 网站是 ningx
你竟然希望两个程序一起争夺443端口

s.png 怎么会是python呢?不可能呀,根本就没有安装python呀。
使用道具 举报 回复 支持 反对
发表于 2019-1-5 15:29:56 | 显示全部楼层
我碰到的同样的问题,持续了10多天,最后在运营群找了大佬帮忙解决,可以参考我的问题
https://www.bt.cn/bbs/thread-20855-1-1.html
使用道具 举报 回复 支持 反对
发表于 2019-3-8 10:23:38 | 显示全部楼层
请问这个问题解决了吗  我也遇到了同样的问题  都配置好了 htpp可以访问  但是 https 就是访问不了
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

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