Trolli Schmittlauch
Reputation
Top tag
Next privilege 5 Rep.
Participate in meta
Badges
1
Newest
 Editor
Impact
~571 people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
Dec
13
comment Serving Django staticfiles via Nginx 404
It still doesn't work, but this config should look a bit cleaner: server { listen 80; server_name blog.orlives.de; location @django { include uwsgi_params; uwsgi_pass unix:/tmp/blog.socket; } location / { try_files $uri $uri/ @django; } location /static { root /home/django/blog/staticfiles; #access_log off; expires 0d; } access_log /var/log/nginx/blog.access.log combined; error_log /var/log/nginx/blog.error.log warn; }
Dec
13
comment Serving Django staticfiles via Nginx 404
Ooops, the duplicate was just a mistake when I posted from my phone
Dec
13
awarded  Editor
Dec
13
revised Serving Django staticfiles via Nginx 404
The duplicate location blocks were not intended
Dec
13
comment Serving Django staticfiles via Nginx 404
thx for your reply, but if there's only one location block allowed, how are configs like this supposed to work ?
Dec
12
asked Serving Django staticfiles via Nginx 404