-
Notifications
You must be signed in to change notification settings - Fork 16
/
whatwg.org.conf
189 lines (183 loc) · 5.97 KB
/
whatwg.org.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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
server {
server_name whatwg.org;
root /var/www/whatwg.org;
include /etc/nginx/whatwg.conf;
error_page 404 /404;
error_page 410 /410;
# There are many files with no extension, and a lot of default_type
# directives to get it right. The default is text/html.
default_type text/html;
location = /status-2008-12 {
default_type text/plain;
}
location ~ ^/specs/web-forms/.*/xforms-implementation-diagram$ {
default_type image/png;
}
location ~ ^/specs/web-forms/.*/sample- {
default_type image/png;
}
location /style/ {
default_type text/css;
}
# 301/302 redirects
location ~ ^/(domparsing|dp)$ {
return 301 https://domparsing.spec.whatwg.org/;
}
location ~ ^/(dom|d)$ {
return 301 https://dom.spec.whatwg.org/;
}
location ~ ^/(encoding|e)$ {
return 301 https://encoding.spec.whatwg.org/;
}
location ~ ^/(fetch|cors)$ {
return 301 https://fetch.spec.whatwg.org/;
}
location ~ ^/(fullscreen|fs|f)$ {
return 301 https://fullscreen.spec.whatwg.org/;
}
location ~ ^/(html|HTML)5?(/(.*))?$ {
return 301 https://html.spec.whatwg.org/multipage/$3;
}
location ~ ^/(javascript|js|j)$ {
return 301 https://javascript.spec.whatwg.org/;
}
location ~ ^/(mimesniff|m)$ {
return 301 https://mimesniff.spec.whatwg.org/;
}
location ~ ^/(notifications|n)$ {
return 301 https://notifications.spec.whatwg.org/;
}
location ~ ^/(quirks|q)$ {
return 301 https://quirks.spec.whatwg.org/;
}
location ~ ^/(url|u)$ {
return 301 https://url.spec.whatwg.org/;
}
location ~ ^/(xhr|x)$ {
return 301 https://xhr.spec.whatwg.org/;
}
location ~ ^/C(/(.*))?$ {
return 301 https://html.spec.whatwg.org/multipage/$2;
}
location ~ ^/c(/(.*))?$ {
return 301 https://html.spec.whatwg.org/$2;
}
location ~ ^/current-work(/(.*))?$ {
return 301 https://spec.whatwg.org/$2;
}
location ~ ^/(demos/(date|multiform|repeat)-01/.*)$ {
return 301 https://github.com/whatwg/whatwg.org/tree/417c7bf7a19375c4fbf4a68146153a6baeadecdb/$1;
}
location ~ ^/demos/canvas(/(.*))?$ {
return 301 https://html.spec.whatwg.org/demos/canvas/$2;
}
location ~ ^/demos/offline/clock(/live-demo)?(/(.*))?$ {
return 301 https://html.spec.whatwg.org/demos/offline/clock/$3;
}
location ~ ^/demos/workers(/(.*))?$ {
return 301 https://html.spec.whatwg.org/demos/workers/$2;
}
location ~ ^/images(/(.*))?$ {
return 302 https://images.whatwg.org/$2;
}
location = /irc {
return 301 https://whatwg.org/chat;
}
location = /link-fixup.js {
return 301 https://html.spec.whatwg.org/multipage/link-fixup.js;
}
location = /mailing-list) {
return 301 https://whatwg.org/mailing-list;
}
location = /mailing-list {
return 301 https://lists.whatwg.org/;
}
location = /newbug {
return 302 https://github.com/whatwg/html/issues/new/choose;
}
location = /pdf {
return 301 https://html.spec.whatwg.org/print.pdf;
}
location = /position-paper {
return 301 https://www.w3.org/2004/04/webapps-cdf-ws/papers/opera.html;
}
location = /specs {
return 301 https://spec.whatwg.org/;
}
location = /specs/ {
return 301 https://spec.whatwg.org/;
}
location ~ ^/specs/html5(/(.*))?$ {
return 301 https://html.spec.whatwg.org/multipage/$2;
}
location ~ ^/specs/url/current-work(/(.*))?$ {
return 301 https://url.spec.whatwg.org/$2;
}
location /specs/vocabs {
return 301 https://html.spec.whatwg.org/multipage/microdata.html;
}
location ~ ^/specs/web-apps/2007-10-26/multipage/images(/(.*))?$ {
return 301 /specs/web-apps/2007-10-26/images/$2;
}
location = /specs/web-apps/current-work/complete.html {
return 301 https://html.spec.whatwg.org/;
}
location ~ ^/specs/web-apps/current-work/complete(/(.*))?$ {
return 301 https://html.spec.whatwg.org/multipage/$2;
}
location = /specs/web-apps/current-work/html-a4.pdf {
return 301 https://html.spec.whatwg.org/print.pdf;
}
location = /specs/web-apps/current-work/html-letter.pdf {
return 301 https://html.spec.whatwg.org/print.pdf;
}
location = /specs/web-apps/current-work/html5-a4.pdf {
return 301 https://html.spec.whatwg.org/print.pdf;
}
location = /specs/web-apps/current-work/html5-letter.pdf {
return 301 https://html.spec.whatwg.org/print.pdf;
}
location = /specs/web-apps/current-work/webrtc.html {
return 301 https://w3c.github.io/webrtc-pc/;
}
location = /specs/web-apps/current-work/websrt.html {
return 301 https://w3c.github.io/webvtt/;
}
location = /specs/web-apps/current-work/webvtt.html {
return 301 https://w3c.github.io/webvtt/;
}
location ~ ^/specs/web-apps/current-work(/(.*))?$ {
return 301 https://html.spec.whatwg.org/$2;
}
location ~ ^/specs/web-apps/html5(/(.*))?$ {
return 301 https://html.spec.whatwg.org/multipage/$2;
}
location /specs/web-forms/tests {
return 301 https://github.com/w3c/web-platform-tests;
}
location /specs/web-socket-protocol {
return 301 https://tools.ietf.org/html/rfc6455;
}
location = /specs/web-workers/current-work/ {
return 301 https://html.spec.whatwg.org/multipage/workers.html;
}
location = /wf2 {
return 301 "https://html.spec.whatwg.org/multipage/#forms";
}
location = /ws {
return 301 "https://html.spec.whatwg.org/multipage/#network";
}
location = /ww {
return 301 "https://html.spec.whatwg.org/multipage/#workers";
}
# 410 Gone resources
location = /issues {
return 410;
}
location = /charter.pl {
return 410;
}
location = /mailing-list.pl {
return 410;
}
}