-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
91 lines (71 loc) · 1.75 KB
/
Copy pathnginx.conf
File metadata and controls
91 lines (71 loc) · 1.75 KB
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
map $http_accept $agora_document {
default /agora/agora.html;
~*text/turtle /agora/agora.ttl;
~*application/rdf\+xml /agora/agora.ttl;
}
map $http_accept $fsm_document {
default /fsm/fsm.html;
~*text/turtle /fsm/fsm.ttl;
}
map $http_accept $pac_document {
default /pac/pac.html;
~*text/turtle /pac/pac.ttl;
}
map $http_accept $messages_document {
default /msg/msg.html;
~*text/turtle /msg/msg.ttl;
}
map $http_accept $users_document {
default /users/users.html;
~*text/turtle /users/users.ttl;
}
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
types {
text/html html;
text/turtle ttl;
image/svg+xml svg;
}
if ($http_x_forwarded_proto = "http") {
return 308 https://$host$request_uri;
}
location = /agora {
try_files $agora_document =404;
}
location = /agora/criteria {
try_files $agora_document =404;
}
location ~ ^/agora/[0-9]+\.[0-9]+\.[0-9]+$ {
try_files $agora_document =404;
}
location = /fsm {
try_files $fsm_document =404;
}
location ~ ^/fsm/[0-9]+\.[0-9]+\.[0-9]+$ {
try_files $fsm_document =404;
}
location = /pac {
try_files $pac_document =404;
}
location ~ ^/pac/[0-9]+\.[0-9]+\.[0-9]+$ {
try_files $pac_document =404;
}
location = /msg {
try_files $messages_document =404;
}
location ~ ^/msg/[0-9]+\.[0-9]+\.[0-9]+$ {
try_files $messages_document =404;
}
location = /users {
try_files $users_document =404;
}
location ~ ^/users/[0-9]+\.[0-9]+\.[0-9]+$ {
try_files $users_document =404;
}
location / {
try_files $uri $uri/ =404;
}
}