Although, as François explained, Django's behavior is normal, such requests
should normally be stopped by the web server and not by Django. Maybe you
haven't correctly specified server_name (in nginx) or ServerName/ServerAlias (in
Apache), or maybe you somehow made the configuration the default for
Most likely a bot testing for vulnerabilities or badly coded crawlers.
I get them and I ignore them. Django requires a proper ‘Host’ HTTP header and
it is doing its job rejecting the request if it is not there.
François
> On Dec 26, 2016, at 2:34 PM, James Hargreaves
> wrote:
>
> Merry Chris
Merry Christmas everyone!
I eel recently added an SSL certificate to my domain where the application is
hosted with Django.
Since I setup the SSL certificate I've been receiving a lot of errors like this:
SuspiciousOperation: Invalid HTTP_HOST header (you may need to set
ALLOWED_HOSTS): AAA.BB
3 matches
Mail list logo