Skip to content

Commit

Permalink
Merge pull request #385 from alphagov/netlify-custom-404
Browse files Browse the repository at this point in the history
Set up Netlify custom `404.html` page
  • Loading branch information
colinrotherham authored Nov 23, 2023
2 parents 0601afe + 6b914af commit f3c6995
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ http {
# The index directive (1) used in the nginx config within the buildpack means
# that we send a 301 redirect when visiting a directory without a trailing
# slash (e.g. /design-system will redirect to /design-system/).
#
#
# However by default nginx will use absolute URLs – including the hostname –
# when redirecting, which means that users going to
# design-system.service.gov.uk/components will end up being redirected to our
Expand All @@ -83,7 +83,7 @@ http {
#
# Because images and videos are not fingerprinted we only cache them for 30
# minutes.
#
#
# The epoch parameter corresponds to the absolute time
# 'Thu, 01 Jan 1970 00:00:01 GMT'.

Expand Down Expand Up @@ -125,7 +125,7 @@ http {

# Configure error pages

error_page 404 /errors/404.html;
error_page 404 /404.html;
error_page 400 401 402 403 405 406 407 408 409 410 411 412 413 414 415 416 417 418 420 422 423 424 426 428 429 431 444 449 450 451 500 501 502 503 504 505 506 507 508 509 510 511 /errors/generic.html;

# Configure basic authentication - this is disabled on the service domain.
Expand Down
File renamed without changes.

0 comments on commit f3c6995

Please sign in to comment.