Attempt to route 404.html without actually testing it

This commit is contained in:
nottnottloop 2023-12-16 22:37:54 +00:00
parent 9b00bd0169
commit ffba6fb7e0
2 changed files with 2 additions and 2 deletions

View file

@ -509,7 +509,7 @@ task :generate_sitemap => [:environment] do
site_files = [] site_files = []
sites.each do |site| sites.each do |site|
site.site_files_dataset.exclude(path: 'not_found.html').where(path: /\.html?$/).all.each do |site_file| site.site_files_dataset.exclude(path: 'not_found.html').exclude(path: '404.html').where(path: /\.html?$/).all.each do |site_file|
if site.file_uri(site_file.path) == site.uri+'/' if site.file_uri(site_file.path) == site.uri+'/'
priority = 0.5 priority = 0.5

View file

@ -8,7 +8,7 @@ server {
error_page 404 = @notfound; error_page 404 = @notfound;
location @notfound { location @notfound {
try_files /not_found.html @notfound_root; try_files /not_found.html /404.html @notfound_root;
} }
location @notfound_root { location @notfound_root {