I am learning Django and configuring Lighttpd as web server.
My Lighttpd Server Configuration for running Django is like below
server.modules = (
"mod_access",
"mod_alias",
"mod_compress",
"mod_redirect",
"mod_scgi",
"mod_proxy",
)
server.document-root = "/var/www/html"
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
server.errorlog = "/var/log/lighttpd/error.log"
server.pid-file = "/var/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
server.port = 8899
index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
url.access-deny = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
compress.cache-dir = "/var/cache/lighttpd/compress/"
compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
# default listening port for IPv6 falls back to the IPv4 port
## Use ipv6 if available
#include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
scgi.protocol = "uwsgi"
scgi.server = (
"/" => (( "host" => "127.0.0.1", "port" => 9000, "check-local" => "disable" )),
)
I created Django app polls (as part of Django tutorials mentioned in the Django documentation) where in the first part it is to create a simple view under polls/view.py
from django.http import HttpResponse
def index(request):
return HttpResponse("Hello, world. You're at the polls index.")
I did as is mentioned in the documentation and able to get above page by executing following command for uwsgi
uwsgi --http 127.0.0.1:9000 --chdir ~/new_project/mysite --wsgi-file mysite/wsgi.py
And I got the webpage as expected

But here is the problem when I want to open from Lighttpd web server it is not happening I changed uwsgi command as required from uwsgi --http ... to uwsgi --uwsgi-socket ...
Below is what I received from browser

Not sure how to proceed to make it work? Any help will be highly appreciated