-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.config
58 lines (41 loc) · 1.11 KB
/
nginx.config
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
# Virtual Host configuration for example.com
#
# You can move that to a different file under sites-available/ and symlink that
# to sites-enabled/ to enable it.
#
server {
listen 80;
listen [::]:80;
server_name _;
root /home/ubuntu/bottle/www;
index index.html;
location / {
try_files $uri $uri/ =404;
}
}
server {
listen 80;
listen [::]:80;
server_name js.bottle.remotehack.space;
server_name *.js.bottle.remotehack.space;
# root /home/ubuntu/bottle/www;
# index index.html;
location / {
try_files $uri $uri/ =404;
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $host;
}
}
server {
listen 80;
listen [::]:80;
server_name go.bottle.remotehack.space;
server_name *.go.bottle.remotehack.space;
# root /home/ubuntu/bottle/www;
# index index.html;
location / {
try_files $uri $uri/ =404;
proxy_pass http://127.0.0.1:7889;
proxy_set_header Host $host;
}
}