Skip to content

Commit 45adf01

Browse files
authored
Update hcommons.conf.template
Added a listener on port 80 for recallthisbook.org as part of the system that keeps existing links alive.
1 parent 6cf9f46 commit 45adf01

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

config/all/nginx/templates/hcommons.conf.template

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ server {
2020
}
2121
}
2222

23+
server {
24+
listen [::]:80;
25+
listen 80;
26+
server_name recallthisbook.org;
27+
location ^~ /wp-content/uploads/ {
28+
rewrite ^/wp-content/uploads/(.*)$ https://hcommons.org/app/uploads/sites/1004474/$1 permanent;
29+
}
30+
}
31+
2332
server {
2433
listen [::]:80 default_server;
2534
listen 80 default_server;

0 commit comments

Comments
 (0)