Re: Removing "Invalid HTTP_HOST header" msgs with nginx.conf default server NOT working

2022-06-28 Thread cseb...@gmail.com
Thanks so much. I'll try it. And your solution has no need for Nginx tweaking. I love it. cs On Sunday, June 26, 2022 at 12:50:02 PM UTC-5 Mr.Teapot wrote: > Please take a look on the ALLOWED_HOSTS documentation > https://docs.djangoproject.com/en/4.0/ref/settings/#allowed-hosts. > > *A lis

Re: Removing "Invalid HTTP_HOST header" msgs with nginx.conf default server NOT working

2022-06-26 Thread Mr.Teapot
Please take a look on the ALLOWED_HOSTS documentation https://docs.djangoproject.com/en/4.0/ref/settings/#allowed-hosts. *A list of strings representing the host/domain names that this Django site can serve. This is a security measure to prevent HTTP Host header attacks

Removing "Invalid HTTP_HOST header" msgs with nginx.conf default server NOT working

2022-06-24 Thread cseb...@gmail.com
I constantly get the errors below in my Django server logs. To try to remove this, I added this to my Nginx server's nginx.conf file but it didn't work server { listen 80 default_server; return 444; } What else can I do to remove these err