#5449 (pdg2 says django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: '162.19.205.90)
by Luc Saffre · in Hosting (system administration) · assigned to hannes
Résumé
Concepts sous-jacents
Commentaires
- 2 ans, 6 mois ago by Luc Saffre about #5449 (pdg2 says django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: '162.19.205.90) : Yes, 162.19.205.90/ responds with the nginx default page, which shows that the request no longer goes to Django.
- 2 ans, 6 mois ago by hannes about #5449 (pdg2 says django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: '162.19.205.90) : This seems to be done.
- 2 ans, 8 mois ago by hannes about #5449 (pdg2 says django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: '162.19.205.90) : Disabled prod.conf and made default (with some changes) active.
- 2 ans, 8 mois ago by hannes about #5449 (pdg2 says django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: '162.19.205.90) : If I add content of prod.conf into default, nginx doesn't restart. To be able nginx to restart, I must take only some lines from prod.conf and add these to default.
- 2 ans, 8 mois ago by Luc Saffre about #5449 (pdg2 says django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: '162.19.205.90) : Why do you introduce a new filename "prod.conf"? I suggest to put the current content of prod.conf in a file named default.
- 2 ans, 8 mois ago by Luc Saffre about #5449 (pdg2 says django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: '162.19.205.90) : @hannes please read our docs about [url hosting.lino-framework.org/nginx/#invalid-http-host-header Invalid HTTP_HOST header].
- 2 ans, 8 mois ago by Luc Saffre about #5449 (pdg2 says django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: '162.19.205.90) : An old issue. It's because we don't define a default site. nginx should not even forward such requests to our Django app.
- 2 ans, 8 mois ago by Luc Saffre about #5449 (pdg2 says django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: '162.19.205.90) : Created new Ticket #5449@hosting (pdg2 says django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: '162.19.205.90).