当标头为空时,HTTP_HOST HEADER和RFC 1043/1035的解决方案是什么?

时间:2018-10-17 19:03:40

标签: python django nginx amazon-ec2

所以通常我会看到,如果出现HTT_HOST HEADER错误,则会将IP添加到允许的主机中。在我的特定情况下,它没有提供该IP。

[ERROR 2018-10-17 18:36:20,893] base.py [:204] get_response: Invalid HTTP_HOST header: ''. The domain name provided is not valid according to RFC 1034/1035.
Traceback (most recent call last):
  File "/opt/django/www/local/lib/python2.7/site-packages/Django-1.8-py2.7.egg/django/core/handlers/wsgi.py", line 189, in __call__
    response = self.get_response(request)

关于我应该做什么的任何想法?

0 个答案:

没有答案