mastus: website: fix 404 cgi
This commit is contained in:
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};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user