-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
102 lines (79 loc) · 1.68 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
keepalive_timeout 65;
# rails31
upstream rails31_thin {
server localhost:9087;
server localhost:9088;
server localhost:9089;
server localhost:9090;
}
server {
listen 8087;
server_name localhost;
location / {
proxy_pass http://rails31_thin;
}
}
# sinatra
upstream sinatra_thin {
server localhost:9187;
server localhost:9188;
server localhost:9189;
server localhost:9190;
}
server {
listen 8187;
server_name localhost;
location / {
proxy_pass http://sinatra_thin;
}
}
# goliath
upstream goliath {
server localhost:9287;
server localhost:9288;
server localhost:9289;
server localhost:9290;
}
server {
listen 8287;
server_name localhost;
location / {
proxy_pass http://goliath;
}
}
# nodejs-mongo
upstream nodejs-mongo {
server localhost:9387;
server localhost:9388;
server localhost:9389;
server localhost:9390;
}
server {
listen 8387;
server_name localhost;
location / {
proxy_pass http://nodejs-mongo;
}
}
# nodejs-mysql
upstream nodejs-mysql {
server localhost:9487;
server localhost:9488;
server localhost:9489;
server localhost:9490;
}
server {
listen 8487;
server_name localhost;
location / {
proxy_pass http://nodejs-mysql;
}
}
}