server server_name omprice ru root web omprice ru web_site access_log

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
server {
server_name .omprice.ru;
root /web/omprice.ru/web_site;
access_log /var/log/www/omprice.ru-access.log;
error_log /var/log/www/omprice.ru-error.log warn;
include vhost-default.conf;
include fastcgi.conf;
location /media {
root /web/django_src/django/contrib/admin;
}
location /pub {}
location /robots.txt {
root /web/omprice.ru/web_site/pub;
}
location /favicon.ico {
root /web/omprice.ru/web_site/pub;
}
location / {
fastcgi_pass unix:/var/run/www/omprice.ru.sock;
}
}