-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.ng_conf
More file actions
50 lines (40 loc) · 1.46 KB
/
nginx.ng_conf
File metadata and controls
50 lines (40 loc) · 1.46 KB
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
server {
listen 80;
listen localhost:80;
server_name www.lh.ios.ru lh.ios.ru
gzip on;
gzip_types text/plain application/xml application/json;
charset utf-8;
client_max_body_size 1m;
set $QA 'http://qa01.family.rambler.ru';
set $family 'http://family.rambler.ru';
set $develop 'http://dev02.family.rambler.ru:8004';
set $develop01 'http://dev01.family.rambler.ru';
set $developOld 'http://family02.dev.rambler.ru:8003';
set $release 'http://stage.family.rambler.ru';
set $vagrant 'http://127.0.0.1:9002';
set $production 'http://family.rambler.ru';
location / {
root /Users/dmitry/pro/IOS;
client_max_body_size 15m;
index index.html index.htm;
proxy_pass http://127.0.0.1$request_uri;
proxy_set_header Host $host;
proxy_set_header Connection close;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location ^~ /api/ {
gzip on;
gzip_types text/plain application/xml application/json;
resolver 8.8.8.8;
proxy_pass $production$request_uri;
#proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
location ~* \.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|ico|map|json)$ {
gzip_static on;
root /Users/dmitry/pro/IOS;
}
error_page 500 502 503 504 /500.html;
}