lnmpa 1.2 开启https 后 discuz X3.3 UC通信失败,求助
我使用的是LNMPA 1.2 装DZx3.3 开启ssl后 访问都没问题,唯一问题是 UC通信失败 ,经过DZ之前版本也有这个问题;找到原因是 301 跳转导致;
配置代码如下:
server
{
listen 80;
server_name www.xxx.com;
return 301 https://www.xxx.com$request_uri;
}
server
{
listen 443 ssl;
server_name www.hl05.com;
index index.html index.htm index.php default.html default.htm default.php;
root/home/wwwroot/hl05.com;
ssl on;
ssl_certificate /usr/etc/sll/Nginx/xxxxxxx.pem;
ssl_certificate_key /usr/etc/sll/Nginx/xxxxxx.key;
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;
ssl_session_cache shared:SSL:10m;
include proxy-pass-php.conf;
location ~ [^/]\.php(/|$)
{
# comment try_files $uri =404; to enable pathinfo
try_files $uri =404;
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fastcgi.conf;
#include pathinfo.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
access_logoff;
}
当我删除 其中
server
{
listen 80;
server_name www.xxx.com;
return 301 https://www.xxx.com$request_uri;
}
UC通信就正常了
可是问题就来了,如果删除上面代码 输入不带HTTPS:\\的链接 就不会访问https
求助怎么解决
还有个问题,1.2我用好久了,很好用,我比较喜欢用新的,有没有办法升级到 1.4或者1.3
[ 本帖最后由 fht21 于 2017-3-13 15:52 编辑 ] 已经从修改DISCUZ 源码解决
页:
[1]