Django RFC 报错
#1856
Replies: 1 comment
-
通过注释掉 nginx 配置的问题所在行解决了,有没有更好的方式 # proxy_set_header X-Forwarded-Host $host:nginx_port; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
这边手工部署安装完后,访问负载均衡的地址,出现 FAQ 文档里说的 RFC 报错
尝试修改正则也没有效果,当前正则如下:
vim /opt/venv4archery/lib/python3.9/site-packages/django/http/request.py host_validation_re = _lazy_re_compile( r"^([a-z0-9.-]+|\[[a-f0-9]*:[a-f0-9\.:]+\])(:[0-9]+)?$" )
Beta Was this translation helpful? Give feedback.
All reactions