1

Serving Django staticfiles via Nginx 404

view story
linux-howto

http://serverfault.com – I host my Djangoproject on Nginx with uwsgi. staticfiles need to be served separately by Nginx server { listen 80; server_name blog.foo.de; location /static { root /home/user/blog/staticfiles; access_log off; expires 30d; } location / { include uwsgi_params; uwsgi_pass unix:/tmp/blog.socket; root /home/user/blog/staticfiles; access_log off; expires 30d; } location / { include uwsgi_params; uwsgi_pass unix:/tmp/blog.socket; } access_log /var/log/n (HowTos)