-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
79 lines (62 loc) · 1.67 KB
/
nginx.conf
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
server {
listen 80;
server_name files.e-cigar.ru;
location /static {
root /home/ecigar/website/ecigar;
}
location /media {
root /home/ecigar/website/ecigar;
}
}
server {
listen 80;
server_name www.e-cigar.ru;
error_log /var/log/nginx/ecigar-error.log warn;
access_log off;
location /dost.html {
rewrite ^ http://www.e-cigar.ru/delivery/ permanent;
}
location /index.html {
rewrite ^ http://www.e-cigar.ru/ permanent;
}
location /b09e58260571.html {
root /home/ecigar/website/ecigar/static;
}
location /antidust/ {
rewrite ^ http://www.e-cigar.ru/ permanent;
}
location /back.html {
rewrite ^ http://www.e-cigar.ru/contacts/ permanent;
}
location /brosit_kurit.html {
rewrite ^ http://www.e-cigar.ru/stat6.html permanent;
}
location /otz.html {
rewrite ^ http://www.e-cigar.ru/ permanent;
}
location /isp.html {
rewrite ^ http://www.e-cigar.ru/about/ permanent;
}
location /static/admin {
alias /home/ecigar/.virtualenvs/ecigar/lib/python2.7/site-packages/django/contrib/admin/media;
}
location /static/ {
root /home/ecigar/website/ecigar;
}
location /media/ {
root /home/ecigar/website/ecigar;
}
location /favicon.ico {
root /home/ecigar/website/ecigar/static/images;
}
location / {
include uwsgi_params;
access_log /var/log/nginx/ecigar-access.log;
uwsgi_pass unix:/run/uwsgi/ecigar.socket;
}
}
server {
listen 80;
server_name .e-cigar.ru;
rewrite ^ http://www.e-cigar.ru$request_uri? permanent;
}