public-web-static: redirect EH20 doku.php?id=$pagename to new format
See: CCCHH/easterhegg-eh20-website#2 (comment)
This commit is contained in:
parent
de2390c78d
commit
ecdaa2d5f6
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue