I may be wrong of course, but I don't recall SNI having anything to do with it. Just using something like
server { listen 80; listen 443 ssl; server_name my.django.site.com; ... } will only send requests for my.django.site.com to the django project. I really don't know about SNI, but I recall having used SSL on Apache before SNI existed and I don't remember any difference with respect to that. Why does SNI affect this? Regards, Antonis Antonis Christofides http://djangodeployment.com On 2017-12-19 02:05, Jon Ribbens wrote: > On 18 Dec 2017, at 23:26, Antonis Christofides <anto...@djangodeployment.com > <mailto:anto...@djangodeployment.com>> wrote: >> >> the documentation describes how to silence this error at >> https://docs.djangoproject.com/en/2.0/topics/logging/#django-security. >> > > It’s not obvious from that how to silence it only for IP literals. I’d still > like to receive it for actual unknown hosts. >> >> How have you deployed your Django project? I always configure Apache or nginx >> in such a way so that such invalid requests never reach Django. >> > A couple of weeks. The nginx configuration idea is a good one, although I was > trying to allow the site to work without SNI, but it’s probably not vital. > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com > <mailto:django-users+unsubscr...@googlegroups.com>. > To post to this group, send email to django-users@googlegroups.com > <mailto:django-users@googlegroups.com>. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/11A18532-A2F4-4F02-AA24-9B6AD9C90DE2%40gmail.com > <https://groups.google.com/d/msgid/django-users/11A18532-A2F4-4F02-AA24-9B6AD9C90DE2%40gmail.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/79f09932-3ca0-fd19-505c-47563f1cd08a%40djangodeployment.com. For more options, visit https://groups.google.com/d/optout.