I ran `sudo reboot` and `sudo service nginx configtest && sudo service nginx restart`. Now the site loads just fine. I don't know which of those two commands did it.
On Friday, May 11, 2018 at 12:22:11 PM UTC-4, Tom Tanner wrote: > > Note: `mydomain.com` is not my real domain name. > > When I go to `test.mydomain.com`, I get a page that just says `Bad > Request (400)`. > > I'm running a Django app located at `/home/django/product_blog`. > > Here are the contents of my nginx file at > `/etc/nginx/sites-available/BRBR2`. > > server { > listen 80; > server_name test.mydomain.com; > error_log /var/log/nginx/debug.log debug; > > location = /favicon.ico { access_log off; log_not_found off; } > location /static/ { > root /home/django/product_blog; > } > > location / { > include uwsgi_params; > uwsgi_pass > unix:/home/django/product_blog/product_blog.sock; > } > } > > When I go to the debug file after trying to load the site, I see this: > https://pastebin.com/GchPd1MD. > > The file at `/var/log/nginx/error.log` shows nothing. > > How do I find the source of the 400 error? > > -- 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/f51f5b16-59d5-438d-8cd8-27f8264ad5c2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.