I host osqa to AWS EC2 Ubuntu. While accessing my website, encouter Bad Request (400)
Bad Request (400)
I check the log info. There is nothing in /var/log/apache2/osqa.error.log
and /var/log/apache2/osqa.access.log
is as follows:
84.97.200.240 - - [07/Jun/2015:16:26:43 +0000] "GET /favicon.ico HTTP/1.1" 400 205 84.97.200.240 - - [07/Jun/2015:16:26:44 +0000] "GET /favicon.ico HTTP/1.1" 400 205 84.97.200.240 - - [07/Jun/2015:16:28:37 +0000] "GET / HTTP/1.1" 400 205 84.97.200.240 - - [07/Jun/2015:16:29:01 +0000] "GET / HTTP/1.1" 400 205
I don't know what is going on and how to fix it.
I hope you have already renamed
settings_local.py.dist
tosettings_local.py
. Then open thesettings_local.py
and add your local host names toALLOWED_HOSTS
setting.EX: