-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathosdg.iiit.ac.in.conf
58 lines (46 loc) · 1.32 KB
/
osdg.iiit.ac.in.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
# this conf file is currently stored in /etc/nginx/conf.d
server {
listen 80;
server_name _;
return 301 https://osdg.iiit.ac.in$request_uri;
}
server {
listen 443 ssl;
server_name _;
ssl_certificate /etc/ssl/iiit.ac.in.pem;
ssl_certificate_key /etc/ssl/iiit.ac.in.pem;
error_log /var/log/nginx/osdg.iiit.ac.in_error_log;
access_log /var/log/nginx/osdg.iiit.ac.in_access_log;
root /var/www/html;
index index.html index.htm;
proxy_buffering off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Proto $scheme;
error_page 502 /502.html;
location /502.html {
# don't proxy-pass 502 error handling.
}
location / {
proxy_pass http://172.21.1.2;
}
location /cabsharing {
proxy_pass http://172.22.0.2;
}
location /casbot {
proxy_pass http://172.20.0.5;
}
location /reviewiiith {
proxy_pass http://172.20.1.2;
}
# Handle /mess and ensure it's redirected to /mess/
location = /mess {
return 301 /mess/;
}
location /mess/ {
proxy_pass http://172.23.1.2/;
}
}