mastus: website: fix 404 cgi

This commit is contained in:
Gabriel Ebner 2018-03-16 17:26:58 +01:00
parent 71a3e19c65
commit 925e4e0b50

@ -40,15 +40,17 @@
ssl_stapling_verify on;
root /srv/www.gebner.org;
error_page 404 403 /404.cgi;
error_page 404 403 /404.html;
access_log logs/website_access.log;
location ~ [^/]\.cgi(/|$) {
fastcgi_split_path_info ^(.+?\.cgi)(/.*)$;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}
location / {
try_files $uri $uri/ @not_found;
}
location @not_found {
try_files /404.cgi =404;
fastcgi_intercept_errors on;
fastcgi_pass unix:${config.services.fcgiwrap.socketAddress};
}
}