Newer
Older
listen 443 ssl;
listen [::]:443 ssl;
# if the requested hostname does match one of the following, check the location block.
server_name localhost tbasti2s.l3montree.com tbasti2s.l3montree.education;
server {
# listen on port 80 and 443 for ipv4 and ipv6 requests
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
listen 443 ssl;
listen [::]:443 ssl;
# if the requested hostname does match one of the following, check the location block.
server_name http://miniwhoami-loc1.tbasti2s.l3montree.education;
location / {
# always return static files
proxy_pass http://miniwhoami-loc1
}
}
server {
# listen on port 80 and 443 for ipv4 and ipv6 requests
listen 443 ssl;
listen [::]:443 ssl;
# if the requested hostname does match one of the following, check the location block.
server_name http://miniwhoami-loc2.tbasti2s.l3montree.education;
location / {
# always return static files
proxy_pass http://miniwhoami-loc2
}
}
server {
# listen on port 80 and 443 for ipv4 and ipv6 requests
listen 443 ssl;
listen [::]:443 ssl;
# if the requested hostname does match one of the following, check the location block.
server_name http://echo.tbasti2s.l3montree.education;
location / {
# always return static files
proxy_pass http://echo:5678
}
}
server {
listen 80 default_server;
server_name _;
return 301 https://$host$request_uri;
}
server {
# listen on port 80 and 443 for ipv4 and ipv6 requests
listen 443 ssl default;
listen [::]:443 ssl default;
# there is no server name provided here - match anything else
location / {
# return the error index.html
root /www/data/error;
}
}