-
Notifications
You must be signed in to change notification settings - Fork 0
/
jrfom.com.conf
171 lines (165 loc) · 6.37 KB
/
jrfom.com.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
server {
listen 10.0.0.5:80;
server_name roomfullofmirrors.com james.roomfullofmirrors.com jrfom.com;
location ~ "^/\.well-known/acme-challenge/([-_a-zA-Z0-9]+)$" {
default_type text/plain;
return 200 "$1.{{ acme_thumbprint }}";
}
location ~* ^/2010/03/06/welcome-to-the-new-room-full-of-mirrors(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2010/03/28/a-package-management-comparison(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2010/04/07/living-a-little(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2010/04/08/five-free-os-x-applications(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2010/05/03/4kb-sectors(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2010/06/06/day-3-ipad-review(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2010/06/08/posting-to-notifo-with-python(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2010/06/16/objective-c-dot-notation(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2010/06/28/announcing-pwptemplate(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2010/10/12/a-list-of-things-i-do-and-want-to-do(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2010/10/29/dont-name-anchor-elements(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2010/12/10/javascript-cookie-manager-object(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2010/12/23/javascript-patterns-a-book-review(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2011/01/15/this-ones-for-the-robots(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2011/01/26/pljson-library(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2011/02/01/new-swan-login(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2011/03/25/a-new-song-rule-of-three(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2011/05/17/a-netcat-tip(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2011/06/28/ssh-users-ip-address(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2011/07/13/sonar-2011-remix-competition-and-my-re-emerging-hobby(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2011/09/28/sshconfig(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2011/11/04/create-a-daemon-out-of-any-program(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2011/12/08/expected-identifier-string-or-number(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2012/02/01/oracle-daylight-saving-time-and-unix-timestamps(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2012/02/10/oracle-and-unix-timestamps-revisited(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2012/04/06/a-simple-grails-plugin(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2012/04/17/returning-a-clob-from-a-java-stored-procedure(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2012/05/09/prolonging-an-ssds-life-by-mitigating-writes(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2012/05/23/winln-a-windows-symbolic-link-manager(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2012/06/18/346(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2013/01/23/javascript-via-java-on-the-back-of-a-rhino(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2013/02/05/cacheviewer-continued-a-history-and-status-update(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2013/03/21/a-note-on-java-culture-and-a-restlet-tutorial(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2013/08/20/cacheviewer-continued-is-discontinued(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2013/08/22/null-is-a-vile-beast(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2013/09/11/the-b-ep(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2014/01/08/fu-ojdbc(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2014/08/11/buddypress-and-lighttpd(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2014/10/13/haproxy-with-keepalived-for-fail-over(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2014/10/19/dysthymia(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2014/11/11/veterans-day(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2014/12/27/inversion-of-control-dependency-injection-with-node-js(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2015/01/13/java-8s-lambda-expressions(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2015/02/02/guild-wars-2-and-magic-find(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
location ~* ^/2015/02/27/the-internet-isps-and-net-neutrality(.*)? {
return 301 $scheme://$host/2015archive$request_uri;
}
# Fix Wordpress content links
location ~* "^/wp-content/(.*)/(.*)(-\d{2,3}x\d{2,3})(\.\w{3})$" {
return 301 $scheme://$host/2015archive/wp-content/uploads/$2$4;
}
# for prior site that redirected 'article?id=123' to '/123'
location ~* ^/(\d+)$ {
return 301 $scheme://$host/2010archive$request_uri;
}
# make sure the 2010 archive still has valid URIs
location ~* ^/2010archive/comments.php {
if ($arg_article) {
return 301 $scheme://$host/2010archive/$arg_article;
}
return 301 $scheme://$host/2010archive/;
}
location ~* ^/2010archive/(\d+)/(images|files)/(.*) {
return 301 $scheme://$host/2010archive/$2/$3;
}
location / {
root /var/www/jrfom.com;
index index.html index.htm;
}
}