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
parent de2390c78d
commit ecdaa2d5f6
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0

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