Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The change you wanted was rejected. #26

Closed
huanglins opened this issue Apr 5, 2018 · 14 comments
Closed

The change you wanted was rejected. #26

huanglins opened this issue Apr 5, 2018 · 14 comments

Comments

@huanglins
Copy link

The change you wanted was rejected.
Maybe you tried to change something you didn't have access to.

If you are the application owner check the logs for more information.

@tinyc-z
Copy link
Contributor

tinyc-z commented Apr 5, 2018

???

@huanglins
Copy link
Author

登录成功后访问 sessions 就会报一个 422的错误,不知道是什么情况。

@tinyc-z
Copy link
Contributor

tinyc-z commented Apr 5, 2018

#19
看看是不是和这有个一样

@huanglins
Copy link
Author

应该是一样的。我通过 ip加端口直接访问没问题,加了 HTTPS 就会有这个问题,我用的certbot的HTTPS。
2018-04-05 1 06 36

@huanglins
Copy link
Author

我也加了 proxy_redirect 也没有效果

@huanglins
Copy link
Author

我的错误显示是这样的:
2018-04-05 1 09 27

@tinyc-z
Copy link
Contributor

tinyc-z commented Apr 5, 2018

    proxy_set_header        Host $host;
    proxy_set_header        X-Real-IP $remote_addr;
    proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header        X-Forwarded-Proto $scheme;
    proxy_pass http://apphost;

改为这个试试

@tinyc-z
Copy link
Contributor

tinyc-z commented Apr 5, 2018

应该是没加
proxy_set_header X-Forwarded-Proto $scheme;

@huanglins
Copy link
Author

wow,可以了,非常感谢!!

@JianChunyang
Copy link

JianChunyang commented Jan 8, 2019

"proxy_set_header X-Forwarded-Proto $scheme;" 在哪里添加
我是直接使用docker 启动的,

@Meleuo
Copy link

Meleuo commented Mar 22, 2019

哇,可以了,非常感谢!

你好!请问你是用什么方式安装的呢,我是docker直接启动的,不知道添加在哪里呢~

@csc-EricWu
Copy link

docker 启动,登陆就报这个错。如何看第一次登陆的账户名和密码

@hack2012
Copy link

经测试是因为默认的nginx.conf中的一个配置导致了请求会由http post 到https 所以浏览器会拒绝。
解决办法:将 docker/nginx.conf 中 proxy_set_header X-Forwarded-Ssl on; 这个配置前面加个# 号即可解决。

@gkl1368
Copy link

gkl1368 commented Feb 9, 2021

还是有这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants