-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
44 lines (36 loc) · 1.03 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
# /etc/nginx/nginx.conf
events {}
http {
server {
listen 80 default_server;
server_name app1.nginx.gforien.com;
location / {
proxy_pass http://app1;
}
}
server {
listen 80;
server_name app2.nginx.gforien.com;
location / {
proxy_pass http://app2;
}
}
server {
listen 443 ssl;
server_name app1.nginx.gforien.com;
ssl_certificate /etc/letsencrypt/live/nginx.gforien.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/nginx.gforien.com/privkey.pem;
location / {
proxy_pass http://app1;
}
}
server {
listen 443 ssl default_server;
server_name app2.nginx.gforien.com;
ssl_certificate /etc/letsencrypt/live/nginx.gforien.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/nginx.gforien.com/privkey.pem;
location / {
proxy_pass http://app2;
}
}
}