没有findDjango的/pipe理员

我尝试设置Nginx + Gunicorn ,当我通过URL访问时, Nginx将请求redirect到我的应用程序,并通过itsels处理静态资源( static文件夹)。 在我的Nginx域configuration下面:

 server { listen 80; server_name asknow.local www.asknow.local; root /home/ghostman/Projects/asknow/asknow; location = /favicon.ico { access_log off; log_not_found off; } location = /static/ { root /home/ghostman/Projects/asknow/asknow; } location = / { include proxy_params; proxy_pass http://unix:/home/ghostman/Projects/asknow/asknow/asknow.sock; } } 

我需要Nginx自己处理请求的问题( www.asknow.local/static ),但它也尝试处理其他URL。 所以当我现在去www.asknow.local/admin Nginx会尝试通过path( my_project/admin )来查找资源。

Nginx日志

 2017/11/01 04:27:22 [error] 13451#13451: *1 open() "/usr/share/nginx/html/static/img/search.svg" failed (2: No such file or directory), client: 127.0.0.1, server: asknow.local, request: "GET /static/img/search.svg HTTP/1.1", host: "www.asknow.local" 

如何解决它?