diff --git a/docs/validators/admin-guide/publishing-history-archives.mdx b/docs/validators/admin-guide/publishing-history-archives.mdx index 3bffdbb685..69770bd28f 100644 --- a/docs/validators/admin-guide/publishing-history-archives.mdx +++ b/docs/validators/admin-guide/publishing-history-archives.mdx @@ -58,9 +58,6 @@ server { server_name history.example.com; - # default is to deny all - location / { deny all; } - # do not cache 404 errors error_page 404 /404.html; location = /404.html { @@ -70,13 +67,13 @@ server { # do not cache history state file location ~ ^/.well-known/stellar-history.json$ { add_header Cache-Control "no-cache" always; - try_files $uri; + try_files $uri =404; } # cache entire history archive for 1 day location / { add_header Cache-Control "max-age=86400"; - try_files $uri; + try_files $uri =404; } } ``` @@ -117,9 +114,6 @@ server { # bucket.name s3 static site endpoint set $s3_bucket "bucket.name.s3-website-us-east-1.amazonaws.com"; - # default is to deny all - location / { deny all; } - # do not cache 404 errors error_page 404 /404.html; location = /404.html {