禅道 开源版本有用过的吗?配置了 https 协议,死活登陆不上,换成 http 就可以登录

2019-10-31 16:53:19 +08:00
 frozenway

nginx 配置为

server {
    listen       443;
    server_name  zentao.xxxx.com;
    index index.html index.htm index.php;
    root /data/www/zentaopms/www;

    ssl on;
    ssl_certificate ssl/3007504_zentao.xxxx.com.pem;
    ssl_certificate_key ssl/3007504_zentao.xxxx.com.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;

    location ~ .*\.(php|php7)?$
    {
        fastcgi_pass  127.0.0.1:9000;
        fastcgi_index index.php;
        include fastcgi.conf;
    }
    location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
    {
        expires 1d;
    }
    location ~ .*\.(js|css)?$
    {
        expires 1d;
    }
    access_log  /alidata/log/nginx/access/default.log;
}

不知道是 nginx 配置出问题了还是怎样?

2567 次点击
所在节点    问与答
7 条回复
doveyoung
2019-10-31 17:09:02 +08:00
我替楼下老哥问一下,报什么错(狗头)

listen 443 ssl http2 这个不知道有没有用,我一般习惯这么写
frozenway
2019-10-31 17:10:42 +08:00
@doveyoung 没报任何错误,输入账号密码点击登录,然后没任何提示就回到登录页面
frozenway
2019-10-31 17:11:18 +08:00
这里有禅道的人吗?
GuryYu
2019-10-31 17:17:03 +08:00
我用的 docker 加 ningx 反代,https 可以正常使用。
参考 nginx 配置如下:
```
server{
listen 443 http2 ssl;
server_name zentao.xxx.com;

ssl_certificate cert/xxx.com/fullchain1.pem;
ssl_certificate_key cert/xxx.com/privkey1.pem;
#省略部分 ssl 配置

location / {
rewrite "^.*$" /www permanent;
}

location /www {
proxy_pass http://1.1.1.1:80/www;
proxy_redirect off;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
```
frozenway
2019-10-31 17:28:30 +08:00
@GuryYu 你这是在 nginx 里把 https 转成 http?
GuryYu
2019-10-31 17:34:11 +08:00
@frozenway #5
是的,禅道本身部署的是 http。
因为我们内网有许多需要映射到外网 https 的服务,所以有个单独的 nginx 来处理反代和 https。
用一个 nginx 应该也是可以的。
takitooru
2019-10-31 21:07:15 +08:00
@GuryYu 搭车问下怎么配置 baseurl

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/614936

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX