python - Nginx+uwsgi not serving Django application -
i'm following tutorial: https://uwsgi.readthedocs.org/en/latest/tutorials/django_and_nginx.html
when point: https://uwsgi.readthedocs.org/en/latest/tutorials/django_and_nginx.html#nginx-and-uwsgi-and-test-py things stop working should.
http://example.com:8000/ returns nothing, , nginx error log empty. doing wrong?
my ssite_nginx.conf follows:
# mysite_nginx.conf # upstream component nginx needs connect upstream django { #server unix:///home/ubuntu/ssite/ssite.sock; # file socket server 127.0.0.1:8001; # web port socket (we'll use first) } # configuration of server server { # port site served on listen 8000; # domain name serve server_name xx.xx.xxx.xxx; # substitute machine's ip address or fqdn charset utf-8; # max upload size client_max_body_size 75m; # adjust taste # django media location /media { alias /home/ubuntu/ssite/ssite/media; # django project's media files - amend $ } location /static { alias /home/ubuntu/ssite/ssite/static; # django project's static files - amend$ } # finally, send non-media requests django server. location / { uwsgi_pass django; include /home/ubuntu/ssite/uwsgi_params; # uwsgi_params file installed } }
Comments
Post a Comment