Note that there are some explanatory texts on larger screens.

plurals
  1. POdjango - ERROR (EXTERNAL IP): Internal Server Error - scanproxy?
    text
    copied!<p>I received the following email today regarding a Django 1.5 error. I believe I have ALLOWED_HOSTS setup correctly. Is someone trying to probe my site for vulnerabilities...? Or am I missing something? The reason I asking about probing is because of the scanproxy.net host that was used.</p> <pre><code>Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 92, in get_response response = middleware_method(request) File "/usr/local/lib/python2.7/dist-packages/django/middleware/common.py", line 57, in process_request host = request.get_host() File "/usr/local/lib/python2.7/dist-packages/django/http/request.py", line 72, in get_host "Invalid HTTP_HOST header (you may need to set ALLOWED_HOSTS): %s" % host) SuspiciousOperation: Invalid HTTP_HOST header (you may need to set ALLOWED_HOSTS): www.scanproxy.net &lt;WSGIRequest path:/p-80.html, GET:&lt;QueryDict: {}&gt;, POST:&lt;QueryDict: {}&gt;, COOKIES:{}, META:{'CONTENT_TYPE': 'text/html', 'DOCUMENT_ROOT': '/var/django/projects/Portfolio', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*', 'HTTP_ACCEPT_LANGUAGE': 'en-us', 'HTTP_HOST': 'www.scanproxy.net', 'HTTP_PROXY_CONNECTION': 'keep-alive', 'HTTP_USER_AGENT': 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; KuKu 0.65)', 'PATH_INFO': u'/p-80.html', 'PATH_TRANSLATED': '/var/django/projects/Portfolio/apache/django.wsgi/p-80.html', 'QUERY_STRING': '', 'REMOTE_ADDR': '66.197.134.126', 'REMOTE_PORT': '1865', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': 'http://www.scanproxy.net:80/p-80.html', 'SCRIPT_FILENAME': '/var/django/projects/Portfolio/apache/django.wsgi', 'SCRIPT_NAME': u'', 'SCRIPT_URI': 'http://www.scanproxy.net/p-80.html', 'SCRIPT_URL': '/p-80.html', 'SERVER_ADDR': '10.202.250.95', 'SERVER_ADMIN': 'iamadamcooke@gmail.com', 'SERVER_NAME': 'www.scanproxy.net', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SIGNATURE': '&lt;address&gt;Apache/2.2.22 (Ubuntu) Server at www.scanproxy.net Port 80&lt;/address&gt;\n', 'SERVER_SOFTWARE': 'Apache/2.2.22 (Ubuntu)', 'mod_wsgi.application_group': 'iamadamcooke.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.process_group': '', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 3), 'wsgi.errors': &lt;mod_wsgi.Log object at 0x7f365219e9f0&gt;, 'wsgi.file_wrapper': &lt;built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f365209d4e0&gt;, 'wsgi.input': &lt;mod_wsgi.Input object at 0x7f36520271f0&gt;, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload