Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Host whatwg.org #20

Merged
merged 4 commits into from
Oct 30, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions debian/marquee/DOMAINS
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ storage.spec.whatwg.org
svn.whatwg.org
validator.whatwg.org
webvtt.spec.whatwg.org
whatwg.org,www.whatwg.org
xhr.spec.whatwg.org
194 changes: 194 additions & 0 deletions debian/marquee/nginx/sites/whatwg.org.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
server {
server_name whatwg.org;
root /var/www/whatwg.org;

ssl_certificate /etc/letsencrypt/live/whatwg.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/whatwg.org/privkey.pem;

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 ~ /README {
default_type text/plain;
}
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;
}

# the demos used CGI and are now broken
location /demos/ {
location ~ ^(/demos/.*)-source$ {
return 302 $1;
}
}

# 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/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 = /google2569a0eb653e4cf1.html {
return 301 https://whatwg.org/;
}
location ~ ^/images(/(.*))?$ {
return 301 https://images.whatwg.org/$2;
}
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 = /newbug {
return 302 https://github.com/whatwg/html/issues/new;
}
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 = /principles {
return 302 https://whatwg.org/position-paper;
}
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/current-work/ {
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/;
}
# fall back to single-page HTML
return 301 https://html.spec.whatwg.org/;
}
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-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;
}

}
10 changes: 10 additions & 0 deletions debian/marquee/nginx/sites/www.whatwg.org.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
server {
server_name www.whatwg.org;

ssl_certificate /etc/letsencrypt/live/whatwg.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/whatwg.org/privkey.pem;

include /etc/nginx/whatwg.conf;

return 301 https://whatwg.org$request_uri;
}