我在hosts.deny中有这个内容(最后有一个新行):# hosts.deny This file describes the names of the hosts which are# The portmap line is redundant, but it is left to remind you that这在hosts.a
我使用Django和ALLOWED_HOSTS设置来包含EC2的私有IP,如下所示:EC2_PRIVATE_IP = None EC2_PRIVATE_IPexcept requests.exceptions.RequestException:if EC2_PRIVATE_IP and not DEBUG:
ALLOWED_HOSTS.append