server server_name omprice ru access_log var log www omprice ru-access

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
server {
server_name .omprice.ru;
access_log /var/log/www/omprice.ru-access.log;
error_log /var/log/www/omprice.ru-error.log warn;
include fastcgi_params;
location /media {
alias /web/omprice/.env/src/django/django/contrib/admin/media;
}
location /static/ {
root /web/omprice;
}
location /robots.txt {
root /web/omprice/static;
}
location /favicon.txt {
root /web/omprice/static;
}
location / {
proxy_pass http://127.0.0.1:8080;
}
}