-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathnginx.conf
113 lines (87 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
103
104
105
106
107
108
109
110
111
112
113
events {
worker_connections 4096;
}
http{
geo $allowed_client {
default 1;
127.0.0.0/8 1;
}
server {
listen 80 ;
listen [::]:80 ;
server_name _;
location / {
return 404;
}
}
upstream try.web1 {
server 10.126.1.10;
}
upstream try.web2 {
server 10.126.2.10;
}
upstream try.web3 {
server 10.126.3.10;
}
upstream try.web4 {
server 10.126.4.10;
}
upstream try.web5 {
server 10.126.5.10;
}
upstream try.web6 {
server 10.126.6.10;
}
upstream try.web7 {
server 10.126.7.10;
}
server {
listen 80;
server_name web1.*;
location / {
proxy_pass http://try.web1;
}
}
server {
listen 80;
server_name web2.*;
location / {
proxy_pass http://try.web2;
}
}
server {
listen 80;
server_name web3.*;
location / {
proxy_pass http://try.web3;
}
}
server {
listen 80;
server_name web4.*;
location / {
proxy_pass http://try.web4;
}
}
server {
listen 80;
server_name web5.*;
location / {
proxy_pass http://try.web5;
}
}
server {
listen 80;
server_name web6.*;
location / {
proxy_pass http://try.web6;
}
}
server {
listen 80;
server_name web7.*;
location / {
proxy_pass http://try.web7;
}
}
}