crm.conf
2.84 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
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
server{
listen 80;
server_name crmapi.yoho.cn;
access_log /Data/logs/nginx/access_crmapi.log fenxi;
location /crm/AiQiSMSReceiveController {
deny all;
proxy_redirect off;
proxy_pass http://crm_pools/crm/AiQiSMSReceiveController;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $http_x_forwarded_for;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Accept-Encoding "gzip";
}
location /crm/MWSMSReceiveController {
allow 61.145.229.29;
allow 112.91.147.37;
allow 218.204.222.12;
allow 211.100.48.90;
allow 218.204.220.242;
deny all;
proxy_redirect off;
proxy_pass http://crm_pools/crm/MWSMSReceiveController;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $http_x_forwarded_for;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Accept-Encoding "gzip";
}
#location / {
# proxy_redirect off;
# proxy_read_timeout 600s;
# proxy_send_timeout 600s;
# proxy_pass http://crm_pools/crm;
# proxy_set_header Host $host;
# proxy_set_header X-Real-IP $http_x_forwarded_for;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header Accept-Encoding "gzip";
#}
}
server{
listen 80;
server_name crm.yoho.cn crm2.yoho.cn;
access_log /Data/logs/nginx/access_crm.log fenxi;
location /crm/ {
allow 106.39.86.227;
allow 106.38.38.147;
allow 106.38.38.146;
allow 218.94.77.166;
allow 218.94.75.50;
allow 218.94.75.58;
allow 180.169.239.138;
deny all;
proxy_redirect off;
proxy_pass http://crm_pools/crm/;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $http_x_forwarded_for;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Accept-Encoding "gzip";
}
location / {
allow 106.39.86.227;
allow 106.38.38.147;
allow 106.38.38.146;
allow 218.94.77.166;
allow 218.94.75.50;
allow 218.94.75.58;
allow 180.169.239.138;
deny all;
proxy_redirect off;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
proxy_pass http://crm_pools/crm;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $http_x_forwarded_for;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Accept-Encoding "gzip";
}
}