public-web-static: redirect EH20 doku.php?id=$pagename to new format

See:
CCCHH/easterhegg-eh20-website#2 (comment)
This commit is contained in:
June 2024-10-13 22:09:20 +02:00 committed by echtnurich
parent e2dc43ede9
commit 654b3f443e
Signed by: echtnurich
SSH key fingerprint: SHA256:1eIkxME0VPeXC2WMl9Haus+q0SLFymSAWU7f6Z+A8Aw

View file

@ -71,6 +71,11 @@ in
root = "${eh20}/wiki_siteexport"; root = "${eh20}/wiki_siteexport";
}; };
# redirect doku.php?id=$pagename to /$pagename.html
locations."/doku.php" = {
return = "301 $scheme://$host/$arg_id.html";
};
extraConfig = '' extraConfig = ''
# Make use of the ngx_http_realip_module to set the $remote_addr and # Make use of the ngx_http_realip_module to set the $remote_addr and
# $remote_port to the client address and client port, when using proxy # $remote_port to the client address and client port, when using proxy