server listen 80 server_name localhost location static root home 4kpt

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
server{
listen 80;
server_name localhost;
location /static/ {
root /home/4kpt/Projects/app/static/;
expires 1y;
}
location /media/ {
root /home/4kpt/Projects/app/media/;
expires 1y;
}
location / {
uwsgi_pass unix:///tmp/uwsgi.sock;
include uwsgi_params;
}
}