Support custom 404 page

The actual 404 will be generated from pelican. log_not_found was set for
privacy reasons (since we don't have a favicon, every request still gets
logged with it's full IP due to the 404)
This commit is contained in:
Moritz 'e1mo' Fromm 2023-04-13 14:25:49 +02:00 committed by Moritz
parent cb4c29f1d7
commit 681da3fd18

View file

@ -41,6 +41,10 @@ in {
serverAliases = [ "www.${baseDomain}" ];
root = webroot;
locations = {
"/".extraConfig = ''
log_not_found off;
error_page 404 /404.html;
'';
"~* ^(/images/.+)\\.(png|jpe?g)$".extraConfig = ''
set $base $1;
add_header Vary Accept;