1
|
|
2
|
user alb;
|
3
|
worker_processes auto;
|
4
|
|
5
|
error_log logs/error.log;
|
6
|
error_log logs/error.log notice;
|
7
|
error_log logs/error.log info;
|
8
|
|
9
|
pid logs/alb.pid;
|
10
|
|
11
|
|
12
|
events {
|
13
|
worker_connections 65536;
|
14
|
}
|
15
|
|
16
|
stream {
|
17
|
lua_package_path "/data/webserver/alb/openrestry_v2/alb-agile-pro-2.0/lualib/?.lua;;";
|
18
|
lua_package_cpath "/data/webserver/alb/openrestry_v2/alb-agile-pro-2.0/lualib/?.so;;";
|
19
|
|
20
|
upstream hst-23001 { # cp1
|
21
|
server 10.223.140.160:23001;
|
22
|
}
|
23
|
upstream hst-23602 { # ss1
|
24
|
server 10.223.140.160:23602;
|
25
|
}
|
26
|
upstream hst-23101 { # webgw1
|
27
|
server 10.223.140.158:23101;
|
28
|
}
|
29
|
upstream hst-23601 { # ss1
|
30
|
server 10.223.140.158:23601;
|
31
|
}
|
32
|
upstream hst-24101 { # wbgw1
|
33
|
server 10.223.140.158:24101;
|
34
|
}
|
35
|
upstream hst-20121 { # store-vod
|
36
|
server 10.223.140.162:20121;
|
37
|
}
|
38
|
upstream hst-20122 { # store-vod
|
39
|
server 10.223.140.162:20122;
|
40
|
}
|
41
|
upstream hst-24753 { # store-edge
|
42
|
server 10.223.140.162:24753;
|
43
|
}
|
44
|
upstream hst-21443 { # nginx
|
45
|
server 10.223.140.159:21443;
|
46
|
}
|
47
|
upstream hst-20131 { # nginx
|
48
|
server 10.223.140.159:20131;
|
49
|
}
|
50
|
upstream hst-8443 { # web
|
51
|
server 10.223.140.159:8443;
|
52
|
}
|
53
|
upstream hst-4432 { # FMWebProxy
|
54
|
server 10.223.140.159:4432;
|
55
|
}
|
56
|
upstream hst-1089 { # FMServer
|
57
|
server 10.223.140.159:1089;
|
58
|
}
|
59
|
upstream hst-40010 { # ces-web
|
60
|
server 10.223.140.159:40010;
|
61
|
}
|
62
|
|
63
|
#tcp配置
|
64
|
server {
|
65
|
listen 40010;
|
66
|
proxy_connect_timeout 60s;
|
67
|
proxy_pass hst-40010;
|
68
|
}
|
69
|
server {
|
70
|
listen 23001;
|
71
|
proxy_connect_timeout 60s;
|
72
|
proxy_pass hst-23001;
|
73
|
}
|
74
|
server {
|
75
|
listen 23601;
|
76
|
proxy_connect_timeout 60s;
|
77
|
proxy_pass hst-23601;
|
78
|
}
|
79
|
server {
|
80
|
listen 23101;
|
81
|
proxy_connect_timeout 60s;
|
82
|
proxy_pass hst-23101;
|
83
|
}
|
84
|
server {
|
85
|
listen 23602;
|
86
|
proxy_connect_timeout 60s;
|
87
|
proxy_pass hst-23602;
|
88
|
}
|
89
|
server {
|
90
|
listen 24101;
|
91
|
proxy_connect_timeout 60s;
|
92
|
proxy_pass hst-24101;
|
93
|
}
|
94
|
server {
|
95
|
listen 20121;
|
96
|
proxy_connect_timeout 60s;
|
97
|
proxy_pass hst-20121;
|
98
|
}
|
99
|
server {
|
100
|
listen 20122;
|
101
|
proxy_connect_timeout 60s;
|
102
|
proxy_pass hst-20122;
|
103
|
}
|
104
|
server {
|
105
|
listen 24753;
|
106
|
proxy_connect_timeout 60s;
|
107
|
proxy_pass hst-24753;
|
108
|
}
|
109
|
server {
|
110
|
listen 21443;
|
111
|
proxy_connect_timeout 60s;
|
112
|
proxy_pass hst-21443;
|
113
|
}
|
114
|
server {
|
115
|
listen 20131;
|
116
|
proxy_connect_timeout 60s;
|
117
|
proxy_pass hst-20131;
|
118
|
}
|
119
|
server {
|
120
|
listen 8443;
|
121
|
proxy_connect_timeout 60s;
|
122
|
proxy_pass hst-8443;
|
123
|
}
|
124
|
server {
|
125
|
listen 4432;
|
126
|
proxy_connect_timeout 60s;
|
127
|
proxy_pass hst-4432;
|
128
|
}
|
129
|
server {
|
130
|
listen 1089;
|
131
|
proxy_connect_timeout 60s;
|
132
|
proxy_pass hst-1089;
|
133
|
}
|
134
|
|
135
|
# udp配置
|
136
|
server {
|
137
|
listen 23601 udp;
|
138
|
proxy_connect_timeout 60s;
|
139
|
proxy_pass hst-23601;
|
140
|
}
|
141
|
server {
|
142
|
listen 23602 udp;
|
143
|
proxy_connect_timeout 60s;
|
144
|
proxy_pass hst-23602;
|
145
|
}
|
146
|
server {
|
147
|
listen 24101 udp;
|
148
|
proxy_connect_timeout 60s;
|
149
|
proxy_pass hst-24101;
|
150
|
}
|
151
|
server {
|
152
|
listen 1089 udp;
|
153
|
proxy_connect_timeout 60s;
|
154
|
proxy_pass hst-1089;
|
155
|
}
|
156
|
server {
|
157
|
listen 23101 udp;
|
158
|
proxy_connect_timeout 60s;
|
159
|
proxy_pass hst-23101;
|
160
|
}
|
161
|
server {
|
162
|
listen 4432 udp;
|
163
|
proxy_connect_timeout 60s;
|
164
|
proxy_pass hst-4432;
|
165
|
}
|
166
|
}
|
167
|
|
168
|
|
169
|
http {
|
170
|
include mime.types;
|
171
|
default_type application/octet-stream;
|
172
|
|
173
|
|
174
|
# 不可修改和删除项 lua_package_path,lua_package_cpath
|
175
|
lua_package_path "/data/webserver/alb/openrestry_v2/alb-agile-pro-2.0/lualib/?.lua;;";
|
176
|
lua_package_cpath "/data/webserver/alb/openrestry_v2/alb-agile-pro-2.0/lualib/?.so;;";
|
177
|
|
178
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
179
|
'$status $body_bytes_sent "$http_referer" '
|
180
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
181
|
|
182
|
access_log logs/access.log main;
|
183
|
|
184
|
sendfile on;
|
185
|
#tcp_nopush on;
|
186
|
|
187
|
#keepalive_timeout 0;
|
188
|
keepalive_timeout 65;
|
189
|
|
190
|
#gzip on;
|
191
|
|
192
|
server {
|
193
|
listen 8081;
|
194
|
server_name localhost;
|
195
|
|
196
|
#charset koi8-r;
|
197
|
|
198
|
#access_log logs/host.access.log main;
|
199
|
|
200
|
location / {
|
201
|
root html;
|
202
|
index index.html index.htm;
|
203
|
}
|
204
|
|
205
|
#error_page 404 /404.html;
|
206
|
|
207
|
# redirect server error pages to the static page /50x.html
|
208
|
#
|
209
|
error_page 500 502 503 504 /50x.html;
|
210
|
location = /50x.html {
|
211
|
root html;
|
212
|
}
|
213
|
|
214
|
location /node_status {
|
215
|
stub_status on;
|
216
|
access_log off;
|
217
|
allow 127.0.0.1;
|
218
|
}
|
219
|
|
220
|
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
|
221
|
#
|
222
|
#location ~ \.php$ {
|
223
|
# proxy_pass http://127.0.0.1;
|
224
|
#}
|
225
|
|
226
|
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
|
227
|
#
|
228
|
#location ~ \.php$ {
|
229
|
# root html;
|
230
|
# fastcgi_pass 127.0.0.1:9000;
|
231
|
# fastcgi_index index.php;
|
232
|
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
|
233
|
# include fastcgi_params;
|
234
|
#}
|
235
|
|
236
|
# deny access to .htaccess files, if Apache's document root
|
237
|
# concurs with nginx's one
|
238
|
#
|
239
|
#location ~ /\.ht {
|
240
|
# deny all;
|
241
|
#}
|
242
|
}
|
243
|
|
244
|
|
245
|
# another virtual host using mix of IP-, name-, and port-based configuration
|
246
|
#
|
247
|
#server {
|
248
|
# listen 8000;
|
249
|
# listen somename:8080;
|
250
|
# server_name somename alias another.alias;
|
251
|
|
252
|
# location / {
|
253
|
# root html;
|
254
|
# index index.html index.htm;
|
255
|
# }
|
256
|
#}
|
257
|
|
258
|
|
259
|
# HTTPS server
|
260
|
#
|
261
|
#server {
|
262
|
# listen 443 ssl;
|
263
|
# server_name localhost;
|
264
|
|
265
|
# ssl_certificate cert.pem;
|
266
|
# ssl_certificate_key cert.key;
|
267
|
|
268
|
# ssl_session_cache shared:SSL:1m;
|
269
|
# ssl_session_timeout 5m;
|
270
|
|
271
|
# ssl_ciphers HIGH:!aNULL:!MD5;
|
272
|
# ssl_prefer_server_ciphers on;
|
273
|
|
274
|
# location / {
|
275
|
# root html;
|
276
|
# index index.html index.htm;
|
277
|
# }
|
278
|
#}
|
279
|
|
280
|
}
|