产品服务AMH 免费服务器主机面板SSL证书 免费SSL证书申请编程助手免费智能写代码、翻译NewAMYSQL 免费MySQL管理工具AMFTP 免费FTP管理客户端

AMH 社区首页

 AMH社区 - 开放自由有价值的社区

[求助帖] 按照帖子nginx设置了SSL为什么没用啊

我是光
铝牌会员
456.00 价值分

我是光 发表于 2014-11-01 19:18:35
按照nginx的方法设置了SSL,不管用啊,https没法访问啊
我的站:liujiantao.me
conf文件如下:
引用:
server
{
listen 80; #listen end
server_name www.liujiantao.me liujiantao.me; #server_name end
index index.html index.htm index.php; #index end

ssl on;
ssl_certificate /home/wwwroot/ssl/liujiantao.me.crt;
ssl_certificate_key /home/wwwroot/ssl/liujiantao.me.key;

set $subdomain '';
root /home/wwwroot/LN1.6M5.5P5.3/domain/www.liujiantao.me/web$subdomain;
include /home/wwwroot/LN1.6M5.5P5.3/rewrite/wordpress.conf; #rewrite end

#error_page
error_page 400 /ErrorPages/400.html;
error_page 403 /ErrorPages/403.html;
error_page 404 /ErrorPages/404.html;
error_page 502 /ErrorPages/502.html;
location ~ /ErrorPages/(400|401|403|404|405|502|503)\.html$
{
root /home/wwwroot/LN1.6M5.5P5.3/domain/www.liujiantao.me/web;
}


location ~ .*\.php$
{
fastcgi_pass unix:/tmp/php-cgi-LN1.6M5.5P5.3-www.liujiantao.me.sock;
fastcgi_index index.php;
include fcgi.conf;
fastcgi_param DOCUMENT_ROOT /web$subdomain;
fastcgi_param SCRIPT_FILENAME /web$subdomain$fastcgi_script_name;
}

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

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

access_log /home/wwwroot/LN1.6M5.5P5.3/logs/www.liujiantao.me-access.log combined; #access_log end
error_log /home/wwwroot/LN1.6M5.5P5.3/logs/www.liujiantao.me-error.log crit; #error_log end
}



评价: 这个问题有价值吗?  没有 (0分)   有, 感谢 (0分)
2014-11-01 19:18:35 1

yanghang
银牌会员
1563.14 价值分

本帖最后由 yanghang 于 2014-11-1 22:26 编辑

检查下看你的证书和密钥文件路径对不对呢
配置以后记得重启 nginx
评价: 这个答复有价值吗?  没有 (0分)   有, 感谢 (0分)
回复  2014-11-01 22:23:10 2

liudiary
金牌会员
6471.83 价值分

你有开443端口?
评价: 这个答复有价值吗?  没有 (-1.97分)   有, 感谢 (0分)
回复  2014-11-01 23:14:01 3

Yusky
金牌会员
11307.70 价值分

支持 30块包配好~
评价: 这个答复有价值吗?  没有 (0分)   有, 感谢 (2.5分)
回复  2014-11-02 10:11:46 4

我是光
铝牌会员
456.00 价值分

引用:
Yusky 发表于 2014-11-2 10:11
30块包配好~


你想多了
评价: 这个答复有价值吗?  没有 (0分)   有, 感谢 (0分)
回复  2014-11-02 11:03:52 5

我是光
铝牌会员
456.00 价值分

引用:
liudiary 发表于 2014-11-1 23:14
你有开443端口?


现在开了,还是没用
评价: 这个答复有价值吗?  没有 (0分)   有, 感谢 (0分)
回复  2014-11-02 11:05:32 6

liudiary
金牌会员
6471.83 价值分

引用:
我是光 发表于 2014-11-2 11:05
现在开了,还是没用


你没开443
评价: 这个答复有价值吗?  没有 (0分)   有, 感谢 (0分)
回复  2014-11-02 11:22:08 7

我是光
铝牌会员
456.00 价值分

引用:
liudiary 发表于 2014-11-2 11:22
你没开443


现在开了!
评价: 这个答复有价值吗?  没有 (0分)   有, 感谢 (0分)
回复  2014-11-02 11:41:39 8

liudiary
金牌会员
6471.83 价值分

引用:
我是光 发表于 2014-11-2 11:41
现在开了!


你在iptables里开了?
评价: 这个答复有价值吗?  没有 (0分)   有, 感谢 (0分)
回复  2014-11-02 12:02:51 9

我是光
铝牌会员
456.00 价值分

引用:
liudiary 发表于 2014-11-2 12:02
你在iptables里开了?


怎么开?
评价: 这个答复有价值吗?  没有 (0分)   有, 感谢 (0分)
回复  2014-11-02 14:13:58 10
 1 2 >  (总2页)
AMH社区列表
用户服务中心