Skip to content
This repository was archived by the owner on Mar 22, 2021. It is now read-only.

访问admin后台,返回301状态码 #18

Open
pikachu-cxy opened this issue Jan 9, 2020 · 2 comments
Open

访问admin后台,返回301状态码 #18

pikachu-cxy opened this issue Jan 9, 2020 · 2 comments

Comments

@pikachu-cxy
Copy link

按照步骤启动服务后,浏览器访问admin后台失败,vps上返回301,可能是哪里的配置有问题呢

@taomujian
Copy link

你没加:80端口吧

@copperfieldd
Copy link

源码默认开启了重定向,修改settings.py SECURE_SSL_REDIRECT = False,将SSL重定向关掉,否则你http访问管理端会重定向到https导致访问失败,除非你有部署nginx之类的反向代理。这个问题折腾了很久。太坑了

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

No branches or pull requests

3 participants