Skip to content

Commit

Permalink
noch ein versuch
Browse files Browse the repository at this point in the history
  • Loading branch information
mcilurzo committed Aug 23, 2024
1 parent 9e90181 commit 379b2d8
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,26 @@ server {
port_in_redirect off;
autoindex on;


location / {
add_header Cache-Control "no-cache";
try_files $uri $uri/ /error/index.html;
error_page 404 https://digital.sbb.ch/error/index.html;
try_files $uri $uri/ =404;
}

#location / {
# add_header Cache-Control "no-cache";
# try_files $uri $uri/ @RedirectToError;
#}

#Catch 40x errors:
#error_page 400 401 402 403 404 = @RedirectToError;

#Catch 50x errors:
#error_page 500 501 502 503 504 = @RedirectToError;

#We are now redirecting to the homepage of the site
#location @RedirectToError {
# return 404 /error/;
#}

error_page 500 502 503 504 404 /error/index.html;
location = /error/index.html {
internal;
}
}

0 comments on commit 379b2d8

Please sign in to comment.