I know this is a really noobish question but I can't find any solution despite finding the problem trivial.

I have a django application deployed with gunicorn. The static files are served by the nginx server with the following url : myserver.com/static/admin/css/base.css. However, my django application keep looking for the static files at myserver.com:8001/static/admin/css/base.css and is obviously failing (404).

I don't know how to fix this. Is it a django or an nginx problem ? Here is my nginx configuration file :

The first line you mentionned is part of the nginx configuration file recommended in the digitalocean tutorial, I just copied/pasted it. What you have suggested didn't change anything. Is it an nginx of django problem ? Should nginx serve the files on port 8001 or should django serve files from myserver.com instead of myserver.com:8001 ?
–
SimonJun 9 '14 at 2:47